pbucc Posted September 24, 2002 Posted September 24, 2002 Hi everyone, i have a database and all the fields are set to uppercase. in my html file i have this for every field: [FMP-Field: name, raw] i am tring to get the text from the records to be in titlecase like the database. thanks peter
The Bridge Posted September 24, 2002 Posted September 24, 2002 Try using Format instead of Raw. This was introduced in either FMP 5 or 5.5. Failing that, you can try this: <script> var FMPField = [FMP-Field: FieldName] FMPField = FMPField.toUpperCase() document.write(FMPField) </script>
pbucc Posted October 3, 2002 Author Posted October 3, 2002 ok i tried the Format and it didn't work. the script didn't as well. it shows in the source file that it is there but it's not writing on the screen. not sure what is happening Peter
Garry Claridge Posted October 3, 2002 Posted October 3, 2002 Try this: <script> var FMPField = "[FMP-Field: FieldName]"; FMPField = FMPField.toUpperCase(); document.write(FMPField); </script> Garry
The Bridge Posted October 4, 2002 Posted October 4, 2002 Nice catch, Garry... I keep forgetting about quotation marks around literals.
Recommended Posts
This topic is 8187 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now