Thank you Nesa. I'm making progress but not quite there yet. To answer your question, yes the two radio buttons belong to the same group called "Report Type". Do the export values have to export to two seperate text boxes or can the values be rendered in one text box (this is my preference) with the value rendered being "INITIAL" when that box is checked or "SUP" when that box is checked? The attached image shows a rough draft of how I'm understaning currently but obviously I'm off somewhere. Does the code just need to be re-written in one text box to accomodate this? Much appreciated.
Hi,
Assuming that is the only two values you have you can have the code be something like
event.value = this.getField("Group1").valueAsString == "INNITIAL" ? "INNITIAL" : "SUP";
Draw back with this is that is would put SUP in even if the radio button has not been selected, if that is a problem you can just split it out
var radioValue = this.getField("Group1").valueAsString
if (radioValue == "INNITIAL"){
event.value = "INNITIAL;
} else if ( radioValue == "SUP") {
event.value = "SUP"
} else {
event.value = "";
}
This could probably be neatened up, but I wanted to keep it obvious as to what was happening.