This topic is locked

Required in Edit Mode

12/6/2010 3:40:59 PM
PHPRunner General questions
O
onlline author

need the following!
in the visual editor I mark a field as required only in editing because I do not want to add that it is obligatory to fill the field but I need it to be it, I have entered the PHP file and removed the line (lsRequired) but my application there is always great I need to reconstruct it have to do this in all fields novament like to know if there is any way to do this.

Sergey Kornilov admin 12/6/2010

'Edit as' settings are applied on both Edit and Add pages.
You can remove validation from the Add page using Javascript API. Here is the sample code that needs to be add to Javascript OnLoad event on the Add page:

var ctrl = Runner.getControl(pageid, 'YourFieldNameHere');

ctrl.removeValidation("IsRequired");


More info:

http://xlinesoft.com/phprunner/docs/ctrl_removevalidation.htm

O
onlline author 12/7/2010



'Edit as' settings are applied on both Edit and Add pages.
You can remove validation from the Add page using Javascript API. Here is the sample code that needs to be add to Javascript OnLoad event on the Add page:

var ctrl = Runner.getControl(pageid, 'YourFieldNameHere');

ctrl.removeValidation("IsRequired");


More info:

http://xlinesoft.com/phprunner/docs/ctrl_removevalidation.htm


Thanks ! if I need to do this with two or more CompAir is possible?

Sergey Kornilov admin 12/8/2010

Not sure what CompAir is.