Issue redirecting to URL with param

By: Adem Cifcioglu | Asked: 04/02/2025
ForumsCategory: General questionsIssue redirecting to URL with param
Adem Cifcioglu asked 3 weeks ago

Hi All,

I'm using the quiz maker and on submit, conditionally redirecting to a seperate page. I want to pass the users score to that page, so I can use it in the content.

in the confirmation action, I add my Redirect URL, structured as follows:

https://[if 688 greater_than="0" less_than="15"]example.com/score-14[/if 688][if 688 greater_than="15" less_than="30"]example.com/score-15-30[/if 688]?score=[688 sanitize_url=1]

and it does redirect, but instead of giving me https://example.com/score-14/?score=8 which is what I'm expecting, I get:

https://example.com/score-14/?score=8%2F86

I'm following instructions https://formidableforms.com/knowledgebase/conditionals/#kb-redirect-to-a-url-conditionally but I'm not sure what I'm missing.

 

Any ideas?

Victor Font Staff replied 3 weeks ago

Adam, I think the post comments are working better on this site than the Answer block. I have a sneaking suspicion that the reCAPTCHA is an issue. I made a mistake before after writing a detailed answer to Phil Cox's post. I made a mistake with the stupid reCAPTCHA popup and hit verify. Nothing happened, then I realized mistake and clicked the 3rd square. The answer went through and it triggered the awaiting moderator error and I lost the answer.

I saw that you answered 55-years ago. Did you have an issue with the reCAPTCHA when you wrote your answer? And did what happened to you trigger the "awaiting moderator" error?

Adem Cifcioglu replied 3 weeks ago

Hey Victor, yeah, I think something strange is going on, because I triggered the awaiting moderation error (and I still can't see the answer I posted)

For anyone who comes across this, looking for an answer.

You will have to pass the total parameter to your score field. i.e. score=[688show=total sanitize_url=1]

1 Answers
Victor Font Staff answered 3 weeks ago

Your expectations are wrong. Formidable is formatting the query string correctly. Don’t uses dashes in parameter names. They are converted to HTML entities automatically by WordPress. Use underscores instead. 

Victor Font Staff replied 3 weeks ago

Also query strings begin with a question mark and subsequent parameters begin with ampersands.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right