Created

Apr 26, 2012

Populate hidden form field with dynamic values

Posted by Feike Visser

In the form components you have a wide range of components that you can use inside the form.

This example explains how to dynamically render a property or value from the content-page in your Hidden Field.

When you edit the properties of your Hidden field you have the following properties:

ScreenHunter_01 Apr. 26 11.30

In case when you have a hardcoded value, you can just enter it into the 'Value' box.

But now in the case of getting the title of the page, or a property of your page.

If you want to retrieve those kind of values, you can use the following notation in your 'Value'-box.

${currentPage.title} (Gets the title)

${currentPage.properties.myCustomProperty (Gets the value of myCustomProperty)

So with this you can have a lot of flexiblity without the need of creating new components to retrieve dynamic values.

ScreenHunter_02 Apr. 26 11.35

COMMENTS