User Registration with text fields capitalize

  • Posts: 22
  • Thank you received: 0
9 years 5 months ago #176462

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!

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
9 years 5 months ago #176469

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.

  • Posts: 22
  • Thank you received: 0
8 years 3 months ago #225878

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.

  • Posts: 13201
  • Thank you received: 2322
8 years 3 months ago #225883

Hi,

You have to apply the css property on the input field, so you can use:

#address_firstname{
text-transform: capitalize! important;
}
Or:
#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.079 seconds
Powered by Kunena Forum