How to set minimum number of characters in phone

Thiwanka created the topic: How to set minimum number of characters in phone

Hi

I have following questions,

How to set minimum number of characters in phone?
How to validate for only numbers?

Thanks
Thiwanka

#19500

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


Support replied the topic: How to set minimum number of characters in phone

Dear Thiwanka,

Please be informed, that for the minimum length you need to edit the field from Form Layout. Here is a forum link, that could help you with the code: stackoverflow.com/questions/10281962/is-...n-attribute-in-html5 . Please add the attributes to the necessary inputs.

As for the validation question, please note, that the phone field is doing number validation by default.
Thank you.


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#19528

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


Thiwanka replied the topic: How to set minimum number of characters in phone

Hi

Thank you for your response. But I'm new to wordpress and Please let me know how to put this code in the Form Layout? Your help is really appreciated.

<div class="wdform-page-and-images" style="display:table; border-top:0px solid black;">
<div id="form_id_tempform_view1" class="wdform_page" page_title="Untitled page" next_title="Next" next_type="text" next_class="wdform-page-button" next_checkable="false" previous_title="Previous" previous_type="text" previous_class="wdform-page-button" previous_checkable="false">
<div class="wdform_section">
<div class="wdform_column">
<div wdid="6" class="wdform_row">
%6 - Phone:%
</div>
<div wdid="1" class="wdform_row">
%1 - Name:%
</div>
<div wdid="2" class="wdform_row">
%2 - E-mail:%
</div>
<div wdid="3" class="wdform_row">
%3 - Subject:%
</div>
<div wdid="4" class="wdform_row">
%4 - Message:%
</div>
<div wdid="5" class="wdform_row">
%5 - type_submit_reset_5%
</div>
</div>
</div>
<div valign="top" class="wdform_footer" style="width: 100%;">
<div style="width: 100%;">
<div style="width: 100%; display: table;">
<div style="display: table-row-group;">
<div id="form_id_temppage_nav1" style="display: table-row;">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Thanks
Thiwanka

#19535

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


Thiwanka replied the topic: How to set minimum number of characters in phone

Hi

I have update the from with pattern=".{5}" attribute, but without validating that data is submitting.
Please check the attached screen shots. :dry:




Thanks
Thiwanka

#19543

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


Support replied the topic: How to set minimum number of characters in phone

Dear Thiwanka,

Could you please try reattaching the screenshots? Unfortunately we did not receive them.
Thank you.


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#19566

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


Thiwanka replied the topic: How to set minimum number of characters in phone

can I have the email id to send it. Coz file is not getting attached.

#19582

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


Support replied the topic: How to set minimum number of characters in phone

Dear Thiwanka,

No luck again. Could you please send the attachments to [email protected]?
Thank you.


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#19584

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


Thiwanka replied the topic: How to set minimum number of characters in phone

Just sent it.

#19585

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


Thiwanka replied the topic: How to set minimum number of characters in phone

Have you received the file?

#19589

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


Support replied the topic: How to set minimum number of characters in phone

Dear Thiwanka,

Yes, we have received the file. We will take a look and come back to you soon.
Thank you.


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#19593

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


Support replied the topic: How to set minimum number of characters in phone

Dear Thiwanka,

Please try adding an additional attribute by editing the field (with the visual editor, not form layout). And please write pattern for Name and .{3,} for Value.

Thank you.


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#19596

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


Time to create page: 0.230 seconds
Powered by Kunena Forum

WORLD-CLASS SUPPORT

We are here for you every step of the way. Turn to our support with any questions you might have about our products and services. Our experienced customer care team is available to help you as fast as we possibly can.

Contact us