How To Fetch Correct Option From a Radio Button? (SOLVED)

@phil18799 I think mixing code and editor action for the same element might be a problem.
Since you have code for the submit onClick it might collide with the dataset saving.
So you have 3 options (depends on what you need):

Instead of having the submitButton.onClick handler, put all this fetch inside:

  1. onBeforeSave( ) (i.e. run it before it saves to the dataset) OR:
  2. onAfterSave( ) (i.e. run it after saving to the DB) OR:

Use submitButton.onClick but:
3. Disconnect the Submit button from the dataset (on the editor) and save all the data using code: https://www.wix.com/velo/reference/wix-dataset/dataset/setfieldvalues , https://www.wix.com/velo/reference/wix-dataset/dataset/save