Thread Starter
Lizuca
(@lizuca)
After doing more investigation, I managed to find a workaround.. I had some fields defined as Read-Only that I’m populating using a custom template. The issue is that those values were saved only by an admin user.
I unchecked the Read-Only property of the fields, so now any user is able to save that information. Only that I have to find a way to make them non-editable (there are calculated prices in those fields).
If you have any idea how to make these non-editable.. it would help me.
Thanks!
I don’t know if you’re doing this, but simply adding hidden input fields will break the submission. You have to let the plugin add the input fields, the template should only set the value of those fields.
I mention this because something is breaking the submission. Another thing I suggest you try is testing the submission using a different browser or using incognito mode. This will eliminate the possibility your login/admin cookies are confusing the issue.
So, you want the fields on the second page to be read-only so that you can show the values to the user? If you don’t need to show those fields to the user, don’t include them in the form on your second page. You can use the “fields” attribute of the [pdb_record] shortcode to control which fields are present. That way, you can leave them as read-only fields.
Thread Starter
Lizuca
(@lizuca)
Thanks – yes, I want to show those fields to the user, like a final check for them. It will show the prices calculated based on their selection from the previous screen. But i don’t want to allow the user to modify them. This is why originally I marked them as Read-Only. But since the information was not saved.. I made them Editable. So now I’m trying to find a way to change them to Read only – might be Javascript? But I haven’t done it before, so I’m a bit lost..
Thanks!
Jacascript is a good way to go, just set the “readonly” attribute of the input field.
http://stackoverflow.com/questions/1306708/add-readonly-to-input-jquery