Hello,
I have a new requirement about Power Pages website. My client would like to send a code for their customer (two types : accounts and contacts). Demand is, we are sending a code to ou customer with a link to Power Pages web site. They open the link and have to put the code on an interface to be transfered to a form to fill.
This behavior is possible with Power Pages ? I was thinking use anonymous authentification. I juste need to detect the code in my backend and redirect is the code is known otherwise block others pages.
Thanks for your answer and have a nice day ! 🙂
Hello, I was thinking about it. If an id is written in that url then I can redirect to the right form. And if someone try to fill my form without an existing id in the url, sbumit button will raise an error.
Somthing like that, and with captcha, spam form will not be possible.
There is no 'backend' redirection available, redirects have to be done via JavaScript.
If the user is clicking a url that contains the value, then you can get the parameter either in Liquid or in JavaScript. If you need to validate it you would either do it by using the Portals Web Api, or on Form submission (most likely with a Plugin doing the work)
you can try using client side code (jquery/javascript) or liquid code to achieve this.