The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
phone number condit...
 
Share:
Notifications
Clear all

[Solved] phone number conditions

7 Posts
2 Users
0 Reactions
488 Views
Posts: 3
 ami
Topic starter
(@ami)
Active Member
Joined: 10 months ago

hello

I want to set number or phone number condition for a text field.

Topic Tags
6 Replies
Asti
Posts: 7661
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi,

We're having trouble understanding your question. Could you please rephrase it?

By the way, in the custom field section of wpDiscuz, you can utilize the "Number" type if needed. For more information, visit: https://wpdiscuz.com/docs/wpdiscuz-7/getting-started/manage-comment-forms/comment-form-builder/#comment_form_fields

5 Replies
 ami
(@ami)
Joined: 10 months ago

Active Member
Posts: 3

@asti 

yes, I use it.

I need to set condition for enter the phone number correctly.

for example phone number has 11 number :09123456788

if user enter any number , Registration is done.

I want to set a condition that they must enter 11 numbers.

Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

@ami,

I'll ask the developers if there's a straightforward solution we can offer you. I'll update this topic once I get a response from them. 

Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

You should use JavaScript code for this customization. 

 ami
(@ami)
Joined: 10 months ago

Active Member
Posts: 3

@asti Thank you.

For the last question, where should I put the javascript code?
In the functions section?

Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7661

@ami

This article should be helpful for you: https://wordpress.com/go/website-building/how-to-properly-add-javascript-to-wordpress-3-top-methods/

Share: