Read Only Field Option

6 posts by 2 authors in: Forums > CMS Builder
Last Post: January 15, 2015   (RSS)

By Ryan - January 14, 2015

Hi,

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?

Ryan

By claire - January 14, 2015

Hi Ryan

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.

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By Ryan - January 14, 2015

Hi Claire, sorry I should have been clearer, support users would be accessing the record through the CMS builder admin tool.

Ryan

By claire - January 14, 2015

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.

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By Ryan - January 15, 2015

Hi Claire,

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.

<tr>
  <td>Query</td>
  <td><?php echo (@$RECORD['query'] ) ?></td>
</tr>

Thanks for your help.

Ryan