Login | Sign up | Toll-Free: 1-800-752-0455
 
 

Forum

 

6 posts by 2 authors in: Forums > CMS Builder
Last Post: January 15, 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

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/

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/

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

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/