Required Field |
7/19/2008 10:31:33 AM |
PHPRunner General questions | |
B
bobby123 authorDevClub member
Hi All |
|
S
|
swanside 7/19/2008 |
Hi All Hope someone can help me with a problem i have, Not sure just how to code this. I want to control the Required Field setup on a details table from a field in the master table If the user enters information in field X in the mater table then, Field Y and Field Z in the details table are set to required fields. I hope this makes sence Thanks for any help Robert
|
B
|
bobby123 authorDevClub member 7/19/2008 |
Thanks swanside |
S
|
swanside 7/19/2008 |
Thanks swanside I am aware that I can select field is required from visual editor, What I am trying to do is If the user enters information in field X in the mater table then, Field Y and Field Z in the details table are set to required fields. If the user doesn't enters information in field X in the mater table then Field Y and Field Z in the details table is not required I think I didn't explain to well last time Thanks Robert
|
J
|
Jane 7/21/2008 |
Hi, if(document.forms.editform.value_field1.value=='some value') define('value_field2','IsRequired','field2: '); else undefine('value_field2'); function undefine(n) { if (document.editform != null) { for (i = 0; i < checkObjects.length; i++) { if (checkObjects[i].form.name==n) checkObjects.splice(i,1); } } } |
B
|
bobby123 authorDevClub member 7/23/2008 |
Thanks Jane |
J
|
Jane 7/24/2008 |
Robert, {literal}<script> ... </script>{/literal}
unset($values["MasterFieldName"]); |