This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 3
Lock Form Field
Started 12 years ago by jilliandolby | 4 posts |
-
Hi
I use my machforms for photography contracts. I have certain parts that I want the clients to fill in but I have standard clauses that I don't want them to change - is it possible to "lock" the fields that contain the standard clauses so that they cannot be edited by clients?
Thanks in advance.
Jill
Posted 12 years ago # -
@jilliandolby: In general, your users shouldn't be able to change any text in your form, except default choices you may have included in a text entry field. If you are using the text entry area of a paragraph field to enter long passages of text, there is a much better way to do this; use the section break field instead. Despite the name, the purpose of the section break field is to allow you to add arbitrarily long passages of constant, non-editable text to your form. If this answer isn't helpful, perhaps you could include a link to an example of your form, so we can see what you are trying to do.
Posted 12 years ago # -
hi jilliandolby,
I don't work for appnitro, but have you tried using jquery? if you add a css class - lets say you call it "locked" then you could do something like this:
<script type="text/javascript"> $(document).ready(function() { $('.locked').attr('readonly', true); }); </script>
That will probably only really work if you're embedding the form via the PHP embed code. Also, i haven't tested the code, but you could do a google search for jquery readonly or jquery disable. Hope that helps.
Posted 12 years ago # -
Thanks Guys - @williamansley I have used your section-break suggestion. Thank you so much!!!
Jill
Posted 12 years ago #
Reply
You must log in to post.