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 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

By claire - January 15, 2015

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.

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

Claire Ryan
interactivetools.com

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