• Lizuca

    (@lizuca)


    Hi, I need your help again…
    I created a multiple forms sign-up: fist page had the signup shortcode, second one the record one, and then diverts to thanks.
    All good, the information is saved.. but only when i’m filling in the form and being logged in as the admin of the site. When I’m signing off or when anyone else tries the form, it will only insert the data from the first page (the signup), but the fields being saved in the second form are not updated. It looks like only the Admin can update the data in this page (the one with the record shortcode).
    Any idea why?
    It is pretty urgent, we have to launch the registrations in 2 days…
    Thank you!!

    https://www.ads-software.com/plugins/participants-database/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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!

    Plugin Author xnau webdesign

    (@xnau)

    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!

    Plugin Author xnau webdesign

    (@xnau)

    Jacascript is a good way to go, just set the “readonly” attribute of the input field.

    https://stackoverflow.com/questions/1306708/add-readonly-to-input-jquery

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multiple forms – saving only for Admin user’ is closed to new replies.