Hi. I am using LiveCycle Designer 8.0 and I am trying to define object properties that will allow the selection of a radio button to populate in a numeric data field at the bottom of the page. I was able to write the script to have that happen with drop-down lists, but I can't figure out how to write the script for the radio button. I also don't know if the script is supposed to apply to the radio button itself or the numeric field where I want the result to show-up. Can you please help me with some sort of an example script? Thanks.
Views
Replies
Total Likes
In the click event for each radio button you could put (in formcalc)
numericfield = 1 // where numericfield is the name of the field you want the number to show in and 1 is where you would put the value you want when the user clicks that button
Views
Replies
Total Likes
Hi,
Another method is to put a single script in the click event of the radio button exclusion group. In the hierarchy, this is the container for all of the related radio buttons.
The script click event would look like:
NumericField.rawValue = this.rawValue;
Then with the radio button exclusion group selected, go to the Object > Binding palette and tick Specify Item Values. Type into the panel the value of each of the individual radio buttons.
Hope that helps,
Niall
Views
Replies
Total Likes
Thank you Niall & whyisthisme. (sorry for the delay since your response but I had to go out of town) I'm not sure I understand where to place the calc script - is it at the numeric field box? I actually had gone into the button exclusion groups and specified the values, but I still can't get what is selected to pop up in my numeric field. Would it be possible for me to send you a pic of my doc so you can see where I am trying to populate that calculation?
Jen
Views
Replies
Total Likes
Hi Jen,
The script in my example would go in the click event of the radio button exclusion group. This is the container that groups all of the radio buttons.
You would just need to replace "NumericField1" with the reference to your numeric field object.
Hope that helps,
Niall
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi Jen,
I can't see the image. If you want to include images you would need to post them online (via email wont work).
In any case here is an example: https://acrobat.com/#d=qE1IszHcL6589QQYB7ceGg.
Hope that helps,
Niall
Views
Replies
Total Likes
I don't seem to have those same fields....attached is the pic I tried to send earlier
Views
Replies
Total Likes
Hi Jen,
I would recommend that you amend your workspace in Designer. You can show/hide palettes from the Window menu.
Here are some pointers (which are optional):
You will see from the screenshot that you can position and stack the palettes to suite your screen and workflow.
Now, in relation to your screenshot:
For starters, I would recommend that you open a few of the palettes and then have a look at my example and the screenshots. Hopefully that will clear it up for you.
Niall
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies