Save the values of radio buttons only on click of Save button

0
Hi, I have a ‘Questions’ entity with two attributes:  Question (String) Option (Enumeration) I am displaying the Question entity in a list view with the Option values as radio buttons. Currently, as soon as I select a radio button, the Options value for that question changes to the value I selected. But I want to save the new value only if I press a ‘Save’ button and  not just by selecting a different radio button. If I select a  different radio button and exit the page without pressing the ‘Save’ button, I don’t want want the new value to save.  Any leads on how can I do that? Thanks
asked
2 answers
0

Make sure that you events  on-change, on-leave are set to “Do nothing”

 

answered
0

Hi Shardul, when changing an enumeration in any data widget you will be updating the object locally. The changes will only be submitted to the database when actually committed.

When it should not be updated locally, you will have to use an intermediary helper entity where you will save the choice made by the user, which you then use to change your object in the save action.

answered