Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

how to reset the value of particular field in dialog ?

Level 3
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