Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
How do you format the name ?
-
- Posts: 348
- Joined: Sun Mar 14, 2021 8:48 am
- Location: Geneva
- Has thanked: 94 times
- Been thanked: 12 times
How do you format the name ?
I would be interested to format the name with the first letter in uppercase and the other letters in normal : how can you do that in nuBuilder ? More generally how do you format text ? Many thanks for your help.
-
- nuBuilder Team
- Posts: 4581
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 536 times
- Contact:
Re: How do you format the name ?
Hi,
To make the first letter of a text object uppercase:
In general, there are a lot of functions and methods to format text. It very much depends on your needs what to use.
To format the text when a (text) input object looses focus, add an onblur event to the object with a code like
E.g. see here.
https://developer.mozilla.org/en-US/doc ... formatting
https://developer.mozilla.org/en-US/doc ... xpressions
To make the first letter of a text object uppercase:
Code: Select all
nuSetValue('your_object_id_here',nuGetValue('your_object_id_here').capitalise());
To format the text when a (text) input object looses focus, add an onblur event to the object with a code like
Code: Select all
nuSetValue(this.id,nuGetValue(this.id).capitalise());
E.g. see here.
https://developer.mozilla.org/en-US/doc ... formatting
https://developer.mozilla.org/en-US/doc ... xpressions
-
- nuBuilder Team
- Posts: 4581
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 536 times
- Contact:
Re: How do you format the name ?
Hi Yves,
Did that help you to achieve your goal or do you need additional information?
Did that help you to achieve your goal or do you need additional information?