Show/hide fields depending on url

Hi,

I am trying to configure a form to show/hide fields based on url as the form will sit within multiple pages within our website.

Is there a best way to implement this or if anyone has done similar? h

Thanks

1 Like

Hopefully you already know we have a URL Parameter Value Presenter available in the AppShare.

So using this you can apply a parameter value to a property on page with the hidden row wrapper applied. Then use this as the basis for a Dependency on the form to be hidden based on the value or not.

I just tested this with a surname url parameter mapped to a surname field which was hidden. Then on my form I added a Dependency to hide the submit button if the surname property was empty. Now when I look at my page if there isn’t a surname value in the url the submit button is hidden. But if I add a surname parameter with a value, it appears.

Hopefully you can have some fun with the above.

Regards,

Neil.

@patrickmonan - there are probably other options available as well, depending on how the user accesses the form, for the application to know what route they’ve taken to get there. My instinct would be to have something set a value on the user when they press a relevant link/button to access the form, so you know the route they’ve arrived from. That wouldn’t work if they bookmark/access the URL directly of course, but I don’t know if that’s a likely avenue?

Thanks for the reply’s. I downloaded the URL parameter presenter and working on page now.

Thanks again, much appreciated.