• Resolved John

    (@dsl225)


    Hi folks,

    I’m working on a simple membership subscription form that collects basic user’s data at first page and then, when clicking on “subscribe” button has to generate, and display at a new page, an incremental membership number with some main data collected at previous page, like first and last name – and at the same time sends the same to the user’s email.

    Example:
    Page 1 will have the usual contact form fields with a subscription button
    Page 2 will display the name of the subscriber, plus a generated unique incremental membership number

    This second page doesn’t have any input fields, it’s only a sort of confirmation page that simply adds a unique calculated field.

    Confirmation email will hold all inputs by subscriber, plus his membership number (generated by the form).

    Would it be correct making the submission button conditional that reacts “when clicked” and generates a calculated field with incremental values at a new page (and sends the confirmation email), or is there a simpler solution?

    Thanks!

Viewing 3 replies - 16 through 18 (of 18 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @dsl225

    I hope you are doing well.

    You can create a simple form on the second page and hide the submit button using CSS,

    If you are not allowing users to edit, maybe this CSS can help:
    https://stackoverflow.com/questions/16811045/is-it-possible-to-make-input-fields-read-only-through-css

    Let us know if you need any further help on this.
    Best Regards
    Patrick Freitas

    Thread Starter John

    (@dsl225)

    Hi Patrick,

    I think you misunderstood my message.
    I also sent a support email related to this.

    I know how to hide the submit button with CSS and I’m doing this already!

    The problem I raised is that this code WILL NOT SEND THE EMAILS UNLESS THE SUBMIT BUTTON IS CLICKED. So, how do you manage that if the submit button is hidden?

    Thanks.

    Thread Starter John

    (@dsl225)

    UPDATE; for this project we now dismissed the idea of having a new form at a second confirmation page and using instead the inline message solution. It’s simpler and more straight forward.

    So, I mark this as resolved for now with thanks for your kind assistance in this matter.

    Cheers.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Generating an incremental number upon submission’ is closed to new replies.