I have just upgraded to the latest version on github but am having trouble with JavaScript on radio buttons from front end additions (only add label). I have the following very simple code set to trigger on the change action:
This works great for any of the predefined options but if I click the add button and add a new option, the action of adding or manually selecting it does not cause the alert box to fire.
Looking at the code that is produced for the option, we have this:
NaN looks wrong and stops other additions being selected if they are added as their ids are not unique. This may also be related to the change action not being triggered.
Ideally, clicking the Add button that actually adds the new option should fire the change action because it is actually changing the selection. Also selecting the new option should fire it as well.
It looks like the checkboxes are suffering from the same problem. I haven?t tested select lists.
Thanks for looking into this.
Code:
alert(this.value);
Looking at the code that is produced for the option, we have this:
Code:
<label class="fabrikgrid_I will simplify my medicine routine" for="smp_goals_meds___goal_NaN">
<input type="radio" value="test" name="smp_goals_meds___goal[]" class="fabrikinput radio" id="smp_goals_meds___goal_NaN"><span>test</span>
</label>
Ideally, clicking the Add button that actually adds the new option should fire the change action because it is actually changing the selection. Also selecting the new option should fire it as well.
It looks like the checkboxes are suffering from the same problem. I haven?t tested select lists.
Thanks for looking into this.