Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Add object's attribute

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Add object's attribute

Unread post by miasoft »

I updated NU from GitHub and tried to use the attribute autocapitalize="words", but it doesn't work. Attribute "placeholder=..." works fine.
autocapitalize

The autocapitalize attribute specifies that the text entered by the user should be automatically capitalized. The autocapitalize attribute is a global attribute that can be applied to any tag.

CODE: SELECT ALL
autocapitalize="words"
Last edited by miasoft on Mon Dec 13, 2021 4:45 am, edited 1 time in total.
Wbr, miasoft.
kev1n
nuBuilder Team
Posts: 4299
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Add object's sttribute

Unread post by kev1n »

Hi,

The autocapitalize attribute doesn’t affect behavior when typing on a physical keyboard. Instead, it affects the behavior of other input mechanisms, such as virtual keyboards on mobile devices and voice input.

You would have to resort to JS to achieve that.
kev1n
nuBuilder Team
Posts: 4299
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Add object's sttribute

Unread post by kev1n »

Example to capitalise the first letter of all words:
totitlecase.jpg

Code: Select all

this.value = this.value.toTitleCase();
You do not have the required permissions to view the files attached to this post.
Post Reply