Sign up |
I'm using my own frontend forms to allow users to generate support requests. (New records in a support table)
Registered support users can then modify the record to update the status and notes fields.
However I like to prevent support users from modifying the original data submitted. Ideally I'd like to set certain fields to read only or output them as text in the same way as createdDate etc.
I can't use the "disable modify" option as support users would not be able to modify the record status or notes.
Is this possible?
On the front end, when you need the field to be ready only, add 'disabled' to the HTML tag. It'll lock the specific field and prevent changes while still displaying the info.
Okay, have you tried setting the editing access level in the Advanced Options for each field? That should give you some control over who can edit the fields after the record is created.
That could work but unfortunately it hides the field from view altogether so it can't be read. I'm able to work around this by displaying them in html separators.
This way you can view the field but not edit it after creation.
<td><?php echo (@$RECORD['query'] ) ?></td>
Thanks for your help.
Okay, thanks for the reply Ryan. Sorry I couldn't give you a complete solution.
I'll remember this in case a similar issue comes up again.