Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

LiveCycle Designer Form - XML data not showing up for radio buttons

bob17837land
Level 1
Level 1

I have radio buttons in my LiveCycle Designer form.  When I import XML data, nothing shows up for my radio button selections.

8 Replies
davew4163863
Level 1
Level 1

I have this same issue in LiveCycle Designer ES4. Has anyone found a solution?

radzmar
Level 10
Level 10

Does you radio button group have a data binding?

davew4163863
Level 1
Level 1

No, the radio button basically sets parameters on a drop-down list and sets the number of instances and visibility of subforms:

if (this.rawValue==1) {

topmostSubform.appendix.appendix_header.numberofDistricts.rawValue=1;

topmostSubform.appendix.appendix_header.presence = "visible";

topmostSubform.appendix.district.presence = "visible";

xfa.resolveNode("topmostSubform.appendix.district").instanceManager.setInstances(2);

xfa.form.recalculate(true);

}

radzmar
Level 10
Level 10

I'm guessing the script above is executed during the change or exit event of your radio button group, right?! If you import data the value of the radio button(s) is eventually updated but event with the script won't be executed. So you'll have to run your script also from an event that fires after an import. This might be the docReady event.

davew4163863
Level 1
Level 1

I'm firing this script using a click event. I tried also adding the code to the docReady event as you suggested with no success. I then tried adding it to the formReady event which also did not work.

radzmar
Level 10
Level 10

Can you share your form, so we can take a look on it?

davew4163863
Level 1
Level 1

Okay, attached is the section experiencing the issue after loading images then exporting the XML and re-importing where the bottom layer of images are hidden.

Thanks,

Dave

davew4163863
Level 1
Level 1

Okay, the solution is to replicate the code using a layout ready event instead of docready or formready events. Thanks for your help with this radzmar!!!