Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

how to reset the value of particular field in dialog ?

Avatar

Level 3

I have three options in my dropdown,(A,B,C) . When i choose A , a pathield comes . When i choose B , a textfield comes . When i choose C ,  radiobutton group comes.

suppose i choose all options one by one and filled value respective of their field though my logic would be like whichever be my selection only that thing would reflect on my page. But all other options value also comes in the jcr:content properties of that page. I dont want that. I want like - if i choose A and put some value in its pathfield after then if i choose B , then all the values filled in A should get reset automatically. I have to use listener but how , i think selectionChanged event we can use. But i am not ble to make it. Please assist me.

1 Reply

Avatar

Level 10

You can control the values of dialog fields via code. See this article as an example: https://helpx.adobe.com/experience-manager/using/dynamically-updating-aem-custom-xtype.html