• Resolved ricklock

    (@ricklock)


    How do I get Forminator to transfer email addresses that use a plus sign as a param?

    When such email is input in an email field, it gets rendered correctly in an email template. If I try to transfer it to a next from as a param (e.g./[email protected]), it is obviously rendered in the form fields (html or email) as “myemail [email protected]” because “+” apparently means space.

    I want to use that email to send a further email to that email address but it obviously fails because of the space character in it.

    Any possibility that this can be done in Forminator?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @ricklock,

    Just to be sure are you trying to pass it from one Forminator form to another Forminator form? Or just manually populating the form page with the mentioned URL parameters?

    I gave a quick test and I can confirm it works fine if I try to pass from one form to another. However, if you are manually populating the URL, then would recommend you to pass it as:

    /?email=myemail%2Btest%40gmail.com

    Please do let us know if you have any further queries.

    Kind Regards,

    Nithin

    Thread Starter ricklock

    (@ricklock)

    Form1 has email-1 field which is used in a link in an email as <a >Link to form2</a>.

    Form2 has a field hidden-1 which uses param email when querying param.
    Form2 has a field html-1 which renders {hidden-1}.

    Field hidden-1 and field html-1 are rendering email as myemail [email protected] instead of [email protected].

    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @ricklock

    The information you have shared does not match and if they work for some reason, then it seems you use some custom code for that.

    Please note that those are only available Form Data which can be placed on the HTML field:
    https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#form-data

    In short I wonder how this part works:

    Form2 has a field html-1 which renders {hidden-1}.

    Can you export your both forms, upload them to Google Drive, and share links in your next reply so that we can be on the same page with your setup?

    Kind Regards,
    Kris

    Thread Starter ricklock

    (@ricklock)

    Please find the forms here: https://filebin.net/sh7dgn3srr60sa14

    I believe you have to click twice on a .txt file because it gives a message that file doesn’t exist when you click it the first time.

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @ricklock,

    It seems you have a separate hyperlink or button linking to the page with Form 2. Please note that the macro “{email-1}” will only function within the Forminator form.

    I did not observe any URL redirection as part of Form 1’s submission behavior.

    I assume you are looking to pass the email captured in Form 1 to Form 2. I hope the following documentation comes in handy: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#pre-populate-form-field-values

    I hope that helps.

    Best Regards,
    Nebu John

    Thread Starter ricklock

    (@ricklock)

    My goal is to get a customer email from Form 1, which is sent to admin through an email when submitted.

    Then admin has a link to Form 2, which is an admin form, and by clicking a link, Form 2 is supposed to have customer email prepopulated so that admin can send them an email by submitting Form 2.
    I don’t think I added an email that would be sent to customer from Form 2. But, I wanted to use {hidden-1} as a recipient for Form 2 email.

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hi @ricklock

    That is expected behavior because Forminaotr uses URL decode function before using the data in the pre-fill option, and plus is used in some types of URL encoder functions, we can’t do anything about it on our and end the best solution is to encode the email address before passing it for the second form.

    This process is part of the form security validation and it is crucial for the form security. You may take a look at this these documents to learns more:

    https://stackoverflow.com/questions/2678551/when-should-space-be-encoded-to-plus-or-20

    https://www.geeksforgeeks.org/php-urlencode-function/

    Best Regards
    Amin

    Thread Starter ricklock

    (@ricklock)

    Thanks.
    Not resolved but can be closed.
    I vote for a feature that would enable encoding the email address for forms as a Settings option.

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