How to

  • Posts: 1
  • Thank you received: 0
7 years 6 months ago #282740

-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.8.2
-- PHP version -- : 7.1.11

Hi guys i have a question i am new to Hikashop
i created a Custom Field - Table Item - Field Type Text Area

Which Looks Good Now what i need is for the Field to only accept for my customers to type on CAPITALS or for the System to capitalize everything

So how do you do this
is this Regular expression check, or Attributes

Besides do you guys have ideas (Examples) of Attributes or Place Holders what does this means how do you work with that

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

  • Posts: 83933
  • Thank you received: 13590
  • MODERATOR
7 years 6 months ago #282770

Hi,

1. A regular expression like that should force capital letters :

^[A-Z]+$
regexone.com/

2. You can find ideas of attributes on the HTML tag list of possible attributes. For example for text areas:
developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea
So you could for example add the attribute:
autocapitalize="characters"
and it will automatically capitalize all the characters entered in the textarea.
A place holder is something that is displayed in an input field in grey before you click on the field to get the focus and write in it.

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

Time to create page: 0.045 seconds
Powered by Kunena Forum