Validation routine fails to work for a field on a form.
When I build the form in Admin tool and enter the validation steps, it works, but when the form is converted and loaded into the database, it does not work.
I want to validate fields as not empty.
The utility formgen.exe does not create the validation section in the .xml file,
The user will have to add that part manually.
The Eclipse plugin uses the .xml file for rendering and validating the form.
The Admin GUI only uses the .hfd file for rendering, so that is why it does not work in Workbench, Eclipse, or Harweb.
Workbench uses Eclipse for rendering the .xml file.
Harweb uses the .html file that is automatically compiled just-in-time (JIT)
from the .xml file.
Here is an example of validation code for Eclipse and Harweb.
Update the .xml file with the validation part, then use hformsync utility to put the changes back into the database and then retest in Workbench.
Note: This validation example has been tested successfully.
Example XML file:
Note: Modifying an existing form type with new or changed data fields is very complex. Request help from support or services if you wish to do this. As an alternative you can create a new form type containing your alterations. After running through the normal process to implement your new form in the SCM database, you can adjust the properties of your project's Create Package process to use the new form type as its default instead of the older form type.