Support » Plugin: RSVPMaker » Option to make formfield readonly

  • Resolved mheffo

    (@mheffo)


    Hi David,

    Thanks for creating this plugin. I’m getting to grips with it over the last week or so and I’ve been tweaking the rsvpmaker-custom.php file for my site. Great idea.
    For my rsvp/event form I have 3 fields – First Name, Email and Note. Just before the latest update (6.3.1) First Name and Email were set to read only as I don’t want the wp user to change these fields when submitting the form. The user can add an optional note and click submit.
    Previously I was able to set the fields to readonly by switching to the code editor and adding in ‘readonly’ to the <input> code. The latest update has removed this ‘option’.

    Do you know how I can set a formfield to readonly now?

    I’m going to try to achieve this with css and/or javascript but ideally I’d like to keep this option within the formfield settings.

    Thanks,

    Mark

Viewing 3 replies - 1 through 3 (of 3 total)
  • Fyi I found some css to make the form fields disabled:

    .first, .email {
    pointer-events: none;
    }

    Working fine on my tests so far.

    Plugin Author davidfcarr

    (@davidfcarr)

    What’s the scenario here? Are you having people login, and their identity is set based on their user account?

    It’s now possible to set up an RSVP form that omits the first name and last name fields, allowing people to register with just an email address as in this example:

    https://sb.rsvpmaker.com/rsvpmaker/hide-form-fields-2019-8-7/

    That’s something people seemed to want to do for certain purposes, like webinar registration. But I don’t understand what you’re trying to accomplish.

    BTW, I’m trying to get away from encouraging the use of pluggable functions to override behavior and instead provide a reasonable API that won’t be as likely to break on updates. If you tell me what you’re trying to accomplish, maybe there’s a utility function I can add (or that may already exist) that I can point you to.

    Thanks for the reply.

    Yes that’s the scenario.. only a WP logged in user will see the rsvp form. I want them to select their answer (yes/no), add a note (optional) and click submit.
    I don’t want to give the user the chance to change their first name or email address. But I’d like to keep these fields for the event’s RSVP Report.

    Visually I’d like the user to see their First Name & Email so they know it’s them signing up. But to reduce the number of fields to be filled in to speed up form submission. I know my target audience! 🙂 Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.