remico
Member
I have a (order) form with some fields (description, price, qty etc.) that have a admin ACL on ADD and EDIT, so the standard user cannot edit these fields. I load values in the fields with the onLoad event and the PHP Form plugin. I use $formModel->data to pre-fill the fields, and this works, I can see the data in the fields on the order form. But when the user submits the form, the pre-filled data is not submitted... how can I solve this?
In short I need to pre-fill some fields that are read only for standard users and can be edited bij admins. If I put the fields on read-only then they are also read only for the admins...
Am I missing something simple here... pulling my hair out on this.
In short I need to pre-fill some fields that are read only for standard users and can be edited bij admins. If I put the fields on read-only then they are also read only for the admins...
Am I missing something simple here... pulling my hair out on this.
Last edited: