Read Only Field Option

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

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

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/