This topic is locked

Disabling Required Fields

4/2/2009 9:02:56 AM
PHPRunner General questions
W
warmwhisky author

Hi,
Can anyone tell me how I disable required fields by editing the php files. I don't want to go through the whole creation process again as I have moderately customised my forms.
I just need to know what file I edit and what the code is.
Thanks

Ben

Sergey Kornilov admin 4/2/2009

Ben,
do you want to disable them or to make non-required?

W
warmwhisky author 4/2/2009

Ben,

do you want to disable them or to make non-required?


Hi thanks for the reply.
I want to make them non Required.
Thanks

Ben

Sergey Kornilov admin 4/2/2009

check tablename_edit.php and tablename_add.php files.
This is the piece of code you looking for:

$validatetype.="IsRequired";

if($validatetype)

$bodyonload.="define('value_fieldname_','".$validatetype."','".jsreplace("fieldname")."');";
W
warmwhisky author 4/4/2009

check tablename_edit.php and tablename_add.php files.

This is the piece of code you looking for:

$validatetype.="IsRequired";

if($validatetype)

$bodyonload.="define('value_fieldname_','".$validatetype."','".jsreplace("fieldname")."');";


I couldnt quite work out how to do it. So I went through the process again and disabled through visual editor.
May I say what an incredible piece of software this is!