The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Add a textbox validation rule via the Custom Fields module interface - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8)
+--- Forum: Form Validation: JS + PHP (https://forums.formtools.org/forumdisplay.php?fid=18)
+--- Thread: Add a textbox validation rule via the Custom Fields module interface (/showthread.php?tid=5081)



Add a textbox validation rule via the Custom Fields module interface - garof - Mar 13th, 2015

Hello,

A newbie question:

I am trying to find a way to check the content of various textbox fiels on my form so as to ensure that they contain a number. If the number has decimal digits, those should be separated by a dot (not by a comma that often people use).

For that, I am trying to use the Custom Fields module. I have created a new field type ("test"), based on the Textbox field type. I would like to add a validation rule that would use a regular expression for the validation of the textbox, which in my case would be "/^\d*\.{0,1}\d*\z/".

I assume that, for an external form I would use something like
rules.push("reg_exp,field_name,'/^\d*\.{0,1}\d*\z/',Error message");
However, how could I do that using the interface of the Custom Fields module? The form that I plan to use this validation on is an internal one.

Thanks in advance for your help!
G.

PS
In the mean time, I have managed to go around the problem. I have used a Hooks rule for "ft_create_blank_submission, end" and an identical one for "ft_update_sumbission, end", which goes through the $_POST fields that should have numbers, checks that the strings have number values, changes the commas to dots and then updates the content of the fieds prior to submission.
However, changing the user input in that way, is something that I would like to avoid.


RE: Add a textbox validation rule via the Custom Fields module interface - SherryJohnson - May 12th, 2020

An archive of the new model is approved for the bloggers. Post of this kind and bestessays is advanced for the promotion for the archives. Element is filed for the top of the science for all goals for the newly adopted items for the future times.


RE: Add a textbox validation rule via the Custom Fields module interface - DEREKS - May 26th, 2020

Hi,

I just downloaded, unzipped, and FTPed the contents of the downloaded folder to my site. When I point to the URL to which the files were uploaded, I get a blank screen.

The first thing I did was look for an installation folder or file. None exists. I'm owner of best essay writing services portal and I need to get help with my question. I'm so happy when I'm find this website! Thanks!

Second, I deleted the upload, and re-uploaded the files contained in the form_builder folder. No joy

I opened every folder and did a comparison of files and files sizes.. They are exact.

I looked for a themes/default/cache, and the original folder does not contain that. I suspect that the file structure has changed since the documentation was written.

I am out of ideas.

I suppose I could manually modify the config and setting files and create a database manually; however, I would prefer the automatic installation method, so I don't miss something.

Any help is greatly appreciated.

I am on shared hosting with BlueHost. The PHP v. is 5.4.24. Database client version: libmysql - 5.1.73

Regards,
Keith


RE: Add a textbox validation rule via the Custom Fields module interface - janeu361 - Jul 21st, 2021

After you have dragged the Textbox form widget in your form, click the Edit button in the upper-right corner of the widget.

For more help visit the key copying new york store or any other place where we can meet.