Page 1 of 1
Form Edit Box or Text Area Expanded Validation / Conditions
Posted: Sun Nov 14, 2021 2:13 am
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.
Re: Form Edit Box or Text Area Expanded Validation / Conditions
Posted: Sun Nov 14, 2021 7:06 am
by Pablo
I'm sorry, there is currently no support for wildcards. This will require a custom script.
Re: Form Edit Box or Text Area Expanded Validation / Conditions
Posted: Sun Nov 14, 2021 9:20 am
by code2
Thanks
Re: Form Edit Box or Text Area Expanded Validation / Conditions
Posted: Sun Nov 14, 2021 10:28 am
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 ?
Re: Form Edit Box or Text Area Expanded Validation / Conditions
Posted: Sun Nov 14, 2021 11:08 am
by Pablo
If you are familiar with JavaScript then you can probably do this yourself.
Re: Form Edit Box or Text Area Expanded Validation / Conditions
Posted: Sun Nov 14, 2021 11:42 pm
by code2
Thank you. I guess I better start learning. Never to old to try something new.
Re: Form Edit Box or Text Area Expanded Validation / Conditions
Posted: Mon Nov 15, 2021 9:10 am
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
Re: Form Edit Box or Text Area Expanded Validation / Conditions
Posted: Tue Nov 16, 2021 4:33 am
by code2
Thank you, WWBman