I use several different forms that let users update field values. Upon submission a new record is created in an UPDATES table and the associated record is updated in the ASSETS table. This is accomplished using Kuovonne's Prefilled Form extension.
Note that if a user submits this form and the field value on the form is empty, then the associated existing value in the ASSETS table will now be empty as well, which is expected. To prevent this, I can make that field in the form mandatory in order to submit, so it contains a value.
However, I am facing a situation where there are six or so fields that a user may want to update -- but may only want to update some of those fields. Is there a way to add conditional code with this logic?:
Upon submitting the form
- For each field that is empty - do nothing
- Else, execute the code to update the field value in the ASSETS table
Maybe such logic can be incorporated into Kuovonne's Prefilled Form extension?
Any ideas or examples would be helpful.
Thanks!