For classic UI there is a option to set defaultValue
for fields, this is shown to user when user first time opens the dialog after dragging the component. If user clears the value in dialog and saves, on editing the dialog, value of field is not shown again.
For touch UI dialog, couldn't find the equivalent of defaultValue
. There are following options
emptyText
- But this is kind of placeholder text. If user wants to save form without entering value, this is not useful.value
- This shows the value when first time component is opened for authoring. But if user clears the value and saves. From the JCR structure the value is removed. But if user opens the dialog for editing, the value is again shown in the field, while this should be empty.
If there a equivalent of defaultValue
in touch UI dialog or any other way of handling this (may be listeners or something else)
numberfield
provides the attributedefaultValue
you can look at Granite Documentation for different available fields at docs.adobe.com/docs/en/aem/6-1/ref/granite-ui/api/jcr_root/libs/… – LightendefaultValue
behavior, the value in JCR is empty unless saved through dialog. I was looking for similar alternate for Touch UI – Vetchling