Skip to main content

User Registration with text fields capitalize

More
11 years 11 months ago #176462 by cfi
Hello, I would like to know if hika in the settings you can set the fields of the record forcing the user entering text with the upper case for the first letter of each word (capitalize).
I enclose a sample image of how they should appear in the fields with the text control.
You have to edit the php file? Can you tell me how and where?
Thanks so much!

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #176469 by Xavier
Hi,

You can potentially add a javascript check on the field content by editing the view "address / form".
Add an php if condition to check which extrafied it is (in the foreach) and based on this result add the javascript check.

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #225878 by cfi
I tried to look for information to make the suggested change javascript, but not having the skills will not work ..
I tried to edit the CSS media / com_hikashop / css / frontend_custom.css
with for example
#hikashop_address_address_firstname {
text-transform: capitalize! important;
}
.hikashop_registration_address_firstname_line {
text-transform: capitalize! important;
}
but nothing happens ...
can you help me to make capitalize all the fields of the record?
thank you

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #225883 by Xavier
Hi,

You have to apply the css property on the input field, so you can use:
Code:
#address_firstname{ text-transform: capitalize! important; }
Or:
Code:
#hikashop_address_address_firstname input{ text-transform: capitalize! important; }

Please Log in or Create an account to join the conversation.

Time to create page: 0.160 seconds
Powered by Kunena Forum