Forums

Locking a field

daviddrennan 20 Feb, 2012
Hi everybody,

I am new so I apologise in advance if I break any etiquette.

I have made a form where I display the logged in user into a field. However I can see that this field can then be changed if the user wants to. How do I lock the field so that it simply displays the logged in user?

Br,

Dave.
GreyHead 20 Feb, 2012
Hi Dave,

Don't display it in a text input if you don't want it editable. You can set an input to disabled or readonly (but only by using a Custom Element element at the moment).

I'd use either a Header Text or Custom Code element and put {input_name} in it and make sure that the Curly REplacer is set to Yes in the Show HTML action.

Bob
daviddrennan 24 Feb, 2012
Hi Bob,

Thanks for that, I had already put it into a hidden field (it was the user name)But i will try the custom field code for practice.
This topic is locked and no more replies can be posted.