Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Change The Maxlength Of Inputs Fields Rate Topic   - - - - -

 

Posted 15 December 2014 - 09:58 PM #1

I change it in profile field but it does not work.I need that the field accept only 25 characters.

I try to use max , min , maxlength , size but do not work.

{* Simple input *}
	    <input {if $field.autocomplete_type}x-autocompletetype="{$field.autocomplete_type}"{/if} type="text" id="{$id_prefix}elm_{$field.field_id}" name="{$data_name}[{$data_id}]" [b]size="{if $field.field_id == 36}25{else}32{/if}" {if $field.field_id == 36}min="0" max="25"{/if} [/b]value="{$value}" class="input-text {if !$skip_field}{$_class}{else}cm-skip-avail-switch{/if}" {if !$skip_field}{$disabled_param}{/if} />
    {/if}


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 18335 posts

Posted 16 December 2014 - 09:26 AM #2

Good day,

I have tried to use maxlength and it works:

http://clip2net.com/s/38QZ8wZ

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 

Posted 16 December 2014 - 01:44 PM #3

Good day,

I have tried to use maxlength and it works:

http://clip2net.com/s/38QZ8wZ


Thanks.

 

Posted 16 December 2014 - 06:20 PM #4

Why don't you set it in RegExp ?

We use the following which sets it at 50 characters.

^([0-9a-zA-Z!@#$%^&'*()-_=+ ]){0,50}$

Elkhorn Graphics LLC
Cs-Cart 4.7.1  SP3


 
  • alijaved
  • Advanced Member
  • Members
  • Join Date: 14-Apr 18
  • 119 posts

Posted 09 September 2018 - 02:34 PM #5

Why don't you set it in RegExp ?

We use the following which sets it at 50 characters.

^([0-9a-zA-Z!@#$%^&'*()-_=+ ]){0,50}$

 

 

Please tell me how can we include the Arabic characters and set the limit? I am trying to do it in the Textbox Option I want to limit the input text in the TextBox as option, I want to limit it to 10 characters Arabic and English Please respond