Kentico Forms, Default Values and Macros

Viewed 268

A client is asking that their field be defaulting to the querystring parameter passed to it. According to the documentation, it should simply be a case of {? querystringnamehere ?} in the default value field but this is apparently not resolving. Has anyone used this before and am I missing a step?

Additional info: This is using version 11.

I based my information on: https://docs.xperience.io/k11/managing-website-content/forms/using-macros-with-forms

3 Answers

You need to use the small black arrow next to the label to enter a macro expression. Otherwise it is considered as text. Also make sure you sanitize the query string against SQLi https://www.screencast.com/t/wMxZdNUFM7U

Related