This topic is locked

Required Fields

3/21/2008 10:44:26 AM
PHPRunner General questions
S
spintz author

The Add and Edit pages aren't updating properlly, visually, for required fields. The fields in the database are marked as Not Null. PHPR only detects that for some of the fields. For the others, I check the property of the Input Control as a required field, but the for Required Field does not appear next to the control. When I add this manually, then I have custom changes to the pages, which makes it a pain when I need to update something else and PHPR either complains, or I need to manually reset the page.
Are there any known problems with this functionality? Would it be possible, so that if an Input Control is marked as Requied, the Visual Editor would update the proper template variable to put the * next to the Input Control.

J
Jane 3/24/2008

Hi,
by default text fields with "NOT NULL" attribute aren't required in the PHPRunner because these fields accept empty strings, but date and numeric field with "NOT NULL" attribute are required allways.
Regarding the second issue.

Just check off your fields as required on the "Edit as" settings dialog on the Visual Editor tab, go to the Events tab and and return to Visual Editor tab.

We'll fix this issue in the next version.