it's a simple function, the Name_copy will have the same value is select Yes and will have '' is select No.
and I have two questions here:
- it's not work if I change the 'radiogroup' to 'checkbox', so it is only works for 'radiogroup' ? is it possible to make it works for 'checkbox'?
- in this exmaple:
Code{
type: "setvalue",
name: "copy",
operator: "equal",
value: "Yes",
setToName: "email",
setValue: "jon.snow@nightwatch.com"
}```
setValue is hardcoded , how can I use the value from other element()? or use the value in javascript code?