Highlighted

defaultValue is not working in TouchUI

Avatar

Avatar

varuns46785756

Avatar

varuns46785756

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

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

18-07-2018

Hi

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

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

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

Highlighted

Avatar

Avatar

Ravi_Pampana

MVP

Avatar

Ravi_Pampana

MVP

Ravi_Pampana
MVP

18-07-2018

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

Highlighted

Avatar

Avatar

varuns46785756

Avatar

varuns46785756

varuns46785756

20-07-2018

thanks its working now by "value"