how to reset the value of particular field in dialog ? | Community
Skip to main content
amangoyal15
Level 3
November 16, 2016

how to reset the value of particular field in dialog ?

  • November 16, 2016
  • 1 reply
  • 1451 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

smacdonald2008
Level 10
November 16, 2016

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