Expand my Community achievements bar.

defaultValue is not working in TouchUI

Avatar

Level 5

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,

4 Replies

Avatar

Community Advisor

Hi

Use "value" property like "defaultValue" for touch UI.



Arun Patidar

Avatar

Level 10

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...

Avatar

Community Advisor

Hi,

Try using emptyText property to populate the text field with default value

Screen Shot 2018-07-18 at 2.05.36 PM.pngScreen Shot 2018-07-18 at 2.05.27 PM.png