- Posts: 22
- Thank you received: 0
User Registration with text fields capitalize
11 years 11 months ago #176462
by cfi
User Registration with text fields capitalize was created 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!
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.
11 years 11 months ago #176469
by Xavier
Replied by Xavier on topic User Registration with text fields capitalize
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.
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.
10 years 8 months ago #225878
by cfi
Replied by cfi on topic User Registration with text fields capitalize
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
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.
10 years 8 months ago #225883
by Xavier
Replied by Xavier on topic User Registration with text fields capitalize
Hi,
You have to apply the css property on the input field, so you can use:
Or:
You have to apply the css property on the input field, so you can use:
Code:
#address_firstname{
text-transform: capitalize! important;
}
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