Highlighted

defaultValue is not working in TouchUI

varuns46785756

18-07-2018

Hi ,

I need to set default value for text field in TouchUI. I can handle this requirement in classic ui by defaultValue property but in TouchUI defaultValue property is not working.

Please suggest what is the substitute of defaultValue property in TouchUI, how can i set default value in touchui.

Thanks,

Replies

Highlighted

smacdonald2008

18-07-2018

In Touch UI - you work with Granite Resource types. TO make a default value - for example - a text field - you use the value field as discussed here: TextField — Granite UI 1.0 documentation

If you are not too familiar with using Granite types (new to AEM or coming from older versions that uses XTYPES)  - then watch this Guided Journey on the subject -- Scott's Digital Community: Guided Journey for Using Granite Resources Types in Experience Manager Co...