Form Edit Box or Text Area Expanded Validation / Conditions

Issues related to forms.
Post Reply
code2
 
 
Posts: 81
Joined: Thu Mar 30, 2017 5:19 am

Form Edit Box or Text Area Expanded Validation / Conditions

Post by code2 »

If someone could point me in the right direction please.

I have a Edit Box and a Text Area I wish to scan for a certain phrase / series of characters and if found create an error flag for edit box / text area or at Form level.

For text, it seems that there is only the "equal to" or "not equal to" option in the object's validation options. Wildcards like * or ? do not seems to work.

Are there any other options ?

Thanks in advance.
User avatar
Pablo
 
Posts: 22503
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form Edit Box or Text Area Expanded Validation / Conditions

Post by Pablo »

I'm sorry, there is currently no support for wildcards. This will require a custom script.
code2
 
 
Posts: 81
Joined: Thu Mar 30, 2017 5:19 am

Re: Form Edit Box or Text Area Expanded Validation / Conditions

Post by code2 »

Thanks
code2
 
 
Posts: 81
Joined: Thu Mar 30, 2017 5:19 am

Re: Form Edit Box or Text Area Expanded Validation / Conditions

Post by code2 »

Sorry, just further.

Is it a point of just doing some fairly simple Java Script or is it really something an expert programmer needs to do ?
User avatar
Pablo
 
Posts: 22503
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Form Edit Box or Text Area Expanded Validation / Conditions

Post by Pablo »

If you are familiar with JavaScript then you can probably do this yourself.
code2
 
 
Posts: 81
Joined: Thu Mar 30, 2017 5:19 am

Re: Form Edit Box or Text Area Expanded Validation / Conditions

Post by code2 »

Thank you. I guess I better start learning. Never to old to try something new. :lol:
WWBman
 
 
Posts: 918
Joined: Fri Jan 08, 2010 6:10 pm

Re: Form Edit Box or Text Area Expanded Validation / Conditions

Post by WWBman »

FWIW:
I have a simple test form that uses PHP to test for urls using the Custom Form Processing option (page must have .php extension).
Perhaps this could be used as a basis for your requirements.

https://www.mediafire.com/file/5pv9t3dq ... t.wbs/file
code2
 
 
Posts: 81
Joined: Thu Mar 30, 2017 5:19 am

Re: Form Edit Box or Text Area Expanded Validation / Conditions

Post by code2 »

Thank you, WWBman
Post Reply