I have a requirement to pre-populate a Sitecore 9 form field from a referring page

Now in WFFM you could use the "ReadQueryString" checkbox:

enter image description here

or you could make use of the Rules Engine inside the Form Designer:

enter image description here

Does anyone know if it's possible in Sitecore Forms OOTB? Or is this something custom that I need to introduce in order to create the same functionality?

up vote 8 down vote accepted

In Sitecore 9.0 it is not possible OOTB.

However, in Sitecore 9.1 they did announce field prefilling as a new feature so if upgrading when this version becomes available (should be very soon now) is an option I would do that.

If that is not an option, you could check the extension my colleague Bart has written: https://github.com/bartverdonck/Sitecore-Forms-Extensions They include prefilling based on xConnect data, but you can extend this with other sources (like the querystring as you require). More info on his solution on his blog.

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.