Home › Forums › Quform WordPress › Do shortcode execution in message after successful submit?
- This topic has 6 replies, 2 voices, and was last updated 10 years, 10 months ago by arjenmol.
- AuthorPosts
- March 10, 2014 at 6:54 pm #9070arjenmolParticipant
Hello again,
As i use this plugin with great satisfaction i am looking to somehow connect it to another (free) plugin called myCRED: http://mycred.mehttp://mycred.me
With this plugin you can reward users with points for actions they do, like logging in, registering, watching video’s etc. I would like also to reward users for sending forms.
I already posted this question on the mycred forum, but maybe you have a suggestion.
I tried to put a shortcode in the message after they send the form. But it is tekst only i quess.
This shortcode is giving users points when they land on a page or post. I could of course redirect after submitting. But i use the forms as a pop-up and users need to stay on the page where the filled the form.Is there a way to do a shortcodes execution after pressing the submit button on a form? Or do you have another suggestion?
P.S. i allready tried to use a hidden html field, but then the shortcode is executed when a users land on the page with the form, even before clicking on the form pop-up.
hope you can help me out!
March 11, 2014 at 3:13 pm #9082AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
March 11, 2014 at 3:42 pm #9091arjenmolParticipantThanks! it works, but only for one form. If i copy the code and change the form ID it breaks the site.
How can i create this for more then one form? (Sorry for the rookie question, but my knowledge about php is still poor ;-))
Thanks again for you great help>
March 11, 2014 at 3:44 pm #9092AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
March 11, 2014 at 3:54 pm #9095arjenmolParticipantWauw awesome fast reply!
Great it works!
Last question: Now the shortcode is for every form the same, in the shortcode i can add a description (log), is it possible to have different custom succes messages? like: my_custom_success_message_1 and my_custom_success_message_2
the shortcode looks like this:
[mycred_give amount=”2″ log=”For sending this form:” reference=”bonus_points” limit=”100″]how would the code be then?
I appreciate the time you are giving!
March 11, 2014 at 4:22 pm #9099AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
March 11, 2014 at 7:49 pm #9114arjenmolParticipantthanks a lot! it works like a charm 😉
- AuthorPosts
- You must be logged in to reply to this topic.