Different email recipients based on URL parameter
-
I’m wanting a popup to send the form input to a different email recipient, depending on the value of a parameter passed to the page the popup button is on. Is this doable?
-
Hi @csdsubscriber,
I’m afraid there isn’t any inbuilt setting; the plugin only supports adding Query Paramete,r but there isn’t any inbuilt setting to send to different email recipients:
https://wpmudev.com/docs/wpmu-dev-plugins/hustle/#capturing-url-query-parameters
However, you could use a form and embed it in the pop-up. The form can be configured to send to different email recipients based on that, and also supports adding a Query Parameter using the “Prepopulate” feature.
Please check this doc for more info:
https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#pre-populate
https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#email-notifications-forms
Regards,
Nithin
I tried to embed a form adding a shortcode in the Content area. Is just showed the shortcode as text. Is there something special needed to get the form to display?
It would only require the step you did https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#display-form-in-hustle
I tried to embed it on my lab site but it worked well, is it possible to share Hustle module and the form so we can take a closer look?
https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export
https://wpmudev.com/docs/wpmu-dev-plugins/hustle/#module-dashboardsYou can share it using Google drive or Pastebin.com
Best Regards
Patrick FreitasCould be because I’m trying to embed it in an existing popup that already submits normally to my GetResponse. What I was hoping was to be able to hide your form elements if there is a query string, and show yours if there is none.
Hello @csdsubscriber,
Could be because Iβm trying to embed it in an existing popup that already submits normally to my GetResponse.
I’ve tested adding the form in popups of both Informational, and Email Opt-in types, and the form was rendering fine.
This might be happening due to a plugin or theme conflict, and running a conflict test may help to find the culprit: https://wpmudev.com/docs/getting-started/getting-support/#conflict-test
If the form still does not appear during the conflict test, and you would like us to test it as well, you can share the form and the popup with us, as suggested in Patrick’s reply above.
What I was hoping was to be able to hide your form elements if there is a query string, and show yours if there is none.
This can be done by applying various visibility rules.
In case your popup appears only on a particular URL, let’s say only on this page:
https://example.com/page, you can add rules in Hustle.– in such cases you can add “Specific URL” rule in Visibility section, to make a popup containing the form appear only when there’s a query parameter and a particular value, for example:
https://example.com/page?form=1Screenshot: https://prnt.sc/j3CepiQzNi5y
The same way, if you need to display another popup without the form, apply a similar rule, but without the query string:
https://example.com/pageScreenshot: https://prnt.sc/Dy0Zq5dkBa6J
If your popup (with and without the form) appears on more than one URL, you can apply visibility rules to each form field in Forminator, and add the form shortcode to your popup.
In this method, create a Hidden field in your form, and specify the query parameter name in the field settings: https://prnt.sc/jcUsVJk2MK1J
Now, you can add a visibility rule to each form field, to make it display when the parameter has a particular value (e.g. form=1): https://prnt.sc/UCRPY-Anfj4n
Visibility rules can be added to individual fields, and field groups.
I hope this helps. Please let us know if you have any questions.
Best Regards,
DmytroThanks for your rich suggestions. I’ll close this one off for now. π
Actually I have one more question. I ended up creating myself a custom popup created through a shortcode. Everything works except my GDPR checkbox and text is being hidden for some reason.
I’m wondering if this could be because of the Hustle css files that seem to be automatically linked to my page, even though the page does not reference a Hustle popup.
Could you peek at this page and see what I mean when you click one of the buttons to bring my custom popup up.:
https://strategicbecoming.com/test
The Label and Checkbox are in the HTML. It even shows up on my mobile browser. But for some reason on the desktop it remains hidden and I can’t figure out what is causing this.
Any thoughts?
Here is
Hello @csdsubscriber
Hope you’re doing well today!
I checked the page you’ve shared and triggered the Popup, however, I was able to see the GDPR Consent Checkbox on my desktop browser without any issues, here is a screenshot for reference: https://monosnap.ai/file/Jnv5gADK9pakXDuiLacZMyv1AkCl8n
I tested on a mobile browser as well, and I noticed the same consent checkbox. Could you please confirm if you were able to fix the issue already? Or in case if I am missing anything?
I do notice Hustle UI Script there, however, it doesn’t seem to be affecting as the popup you’ve added is looking fine.
Kind Regards,
SaurabhInteresting. So what I’ve discovered is for some reason it was being blocked from displaying by my Brave Browser’s shield for some reason. When I turned that off, lo and behold there was the GDPR checkbox.
I’m not finding my Hustle form similarly blocked by this. Wonder why that would be for my custom design. Obviously not “your problem,” but if you have any thoughts on why this would be I would very much appreciate any suggestions to alleviate the issue in that context.
Whatever the case thanks so much for all your inputs! π
Hi @csdsubscriber,
Do you have any scripts associated with the GDPR field from the pop-up?
Brave Browserβs shield is known for blocking certain scripts used to track to protect user privacy. If the GDPR consent field is loaded through any third-party scripts or tracking services, Brave Browser’s shield is likely to block it.
Best Regards,
Nebu JohnNope. Nothing 3rd party, just my own PHP. As I said, once I changed the class names used so they didn’t have “gdpr” in them it showed up.
Another question about YOUR gdpr field. Is there any option to move it above the button instead of below? Also I’m finding right now it is crowding the bottom at the button. Is that changeable at a minimum?
You can see it’s behavior on this page here:
Hi @csdsubscriber,
Another question about YOUR gdpr field. Is there any option to move it above the button instead of below
I’m afraid, there isn’t any inbuilt setting to change the order or position. It’ll require custom CSS to change such a behaviour. You can refer to this for more info:
https://www.w3schools.com/cssref/css3_pr_order.phpAlso Iβm finding right now it is crowding the bottom at the button. Is that changeable at a minimum?
The GDPR field does support adding additional classes for styling as shown in the following screenshot:
https://i.imgur.com/Y0f8UXf.pngYou could then add a CSS under “Appearance” tab > Custom CSS ie for example:
.gd-hustle {
padding-top: 10px;
}Regards,
Nithin
You must be logged in to reply to this topic.