Using a dropdown to set a radio button
i've been searching , searching in vain, trying many different things can cannot seem find answer or stumble on similar code help.
i've got dropdown, when select different values set different fields on form. part works fine stuff in custom validate:
if (event.value == "thing1") {
this.getfield("desc01").value = "words fill in desciption box.";
this.getfield("desc02").value = "more words fill in descrption box";
this.getfield("f_skill1").value = "1";
this.getfield("rb_skill1").isboxchecked(1);
this.getfield("f_skill2").value = "1";
this.getfield("f_skill3").value = "1";
} else if (event.value == "thing2") {
this.getfield("desc01").value = "different words fill in desciption box.";
this.getfield("desc02").value = "more different words fill in descrption box";
this.getfield("f_skill4").value = "1";
this.getfield("rb_skill1").isboxchecked(0);
this.getfield("f_skill5").value = "1";
this.getfield("f_skill6").value = "1";
}
etc, etc. i've got few different else ifs follow kind of format. there radio button next skills on sheet visually display skill known. i'd turn radio button on. isboxchecked isn't working, , expect that's because doesn't work way. have lot of radio buttons on form, have 1 choice in them none groups. again, i'm using visual display skillx known. area i've dropped radio button onto sheet small circle why trying use radio button it's visually similar.
if there better solution i'm trying i'm happy try that, or if can tell me i'm doing wrong that'd super
thanks!
set checkbox it's export value checked, or 'off' uncheck
this.getfield("rb_skill1").value = 'yes'
this.getfield("rb_skill1").value = 'off'
More discussions in JavaScript
adobe
Comments
Post a Comment