Fetching dialog field value in JS

Avatar

Avatar

akshayb35452619

Avatar

akshayb35452619

akshayb35452619

13-08-2020

Hi All,

 

I have created custom component with dialog with one text field. I am trying to fetch text field value in js which gets called on clicking of validate button to validate the entered text field value by author. But I am unable to fetch dialog field value. 

I have tried these:

 

dialog.getField("property name").getValue();

properties.get("property name","");

 

But it is not working. Nothing observed in error logs.

 

Any help to resolve this will be appreciated.

View Entire Topic

Avatar

Avatar

Varun_Shakya

MVP

Avatar

Varun_Shakya

MVP

Varun_Shakya
MVP

14-08-2020

if you want to validate your textfield in touchUI dialog refer this:- https://aemfuel.blogspot.com/2018/06/validating-fields-in-touch-ui-dialog.html if textfield and validate button both present on page.. then textfield value can be picked up by class or id of that element on click function of validate button