At current i am working on a form where you have a yes and no option if you select yes you must then select a level of risk low, med or high. I would like the items to only be able to be chosen if yes is selected.
Please help!!
Mustbeluck
Solved! Go to Solution.
Views
Replies
Total Likes
I have attached a sample that changes the state (access property) of the checkboxes form "ReadOnly" to "Open" (selectable) if the "Yes" radio button is selected. The script will also clear the checkboxes if the "No" radio button is selected.
The script is on the "Change" event of the Radio Button group.
Regards
Steve
Views
Replies
Total Likes
So make the Risk field visible if yes is selected and invisible if it is not selected.
Paul
Views
Replies
Total Likes
I have attached a sample that changes the state (access property) of the checkboxes form "ReadOnly" to "Open" (selectable) if the "Yes" radio button is selected. The script will also clear the checkboxes if the "No" radio button is selected.
The script is on the "Change" event of the Radio Button group.
Regards
Steve
Views
Replies
Total Likes
Thats brilliant thank you!! Sorry to be a pain but how do you do that? Is it scripting if so how you i find that in livecycle and do it? Also sorry another question if i someone selects a radio button by accident and in fact they dont want either how do i set it up so they can cancel it!!
Thank you
Mustbeluck
Views
Replies
Total Likes
Yes, I did use JavaScript to control the behaviour of the checkboxes. You can view the script using a scrip editor window in LiveCycle Designer. By default it is located at the top of the screen (see attached screen shot).
If the Script Editor has been closed, you can open it from the Window menu, select "Script Editor"
As for the radio buttons being cleared, you would need to add script to do this. I have attached a new sample with a button to do this. The script is on the "Click" event.
Regards
Steve
I have a variation on this. I am working on a table that sums quantities. Quantities of the item are entered in one of four categories: B, C, D, E. At the bottom of the table, the quantities for each category are totaled. I would like to make a subform containing a text box VISIBLE if there are ANY quantities entered in category E; if no quantities are entered, I would like it to remain HIDDEN.
My inclination is that if the Totals Numeric Field is greater than 0, then the Text Box would be visible, else, hidden. Something like this:
if (Subform33.OtherSubform.AnimalNos.details.Total.Totals.TotalE.rawValue > 0) JustifyE.presence = "visible";
else JustifyE.presence = "hidden";
But I can't get this to work, trying various things. One thing I think is the problem is that the above is javascript, and the sum script I have is formcalc.
Views
Replies
Total Likes
Your script is close, but it's in the wrong place. You have it in the initialize event for cell E, so it will only execute once when the form is loaded up. Place the following script in the layout:ready event of the JustifyE textfield (I used FormCalc for this one):
if ( xfa.resolveNode("form1.#subform.Subform33.OtherSubform.AnimalNos.details.Total.Totals.TotalE").rawValue > 0 ) then
$.presence
= "visible"
else
$.presence
= "hidden"
endif
Views
Replies
Total Likes
This didn't work for me. I copied and pasted it in the layout:ready event of the JustifyE textfield, using FormCalc. What am I missing?
Views
Replies
Total Likes
Here it is with the script added as described. The box is hiddent, but what I want is for it to be visiable if ANY numbers are added to the Category E spaces. (If Total E is greater than 0?)
Thanks!
Views
Replies
Total Likes
The form is working fine. You have the form saved as a static pdf. Re-save the form as a dynamic pdf. If you're previewing it in Designer, make sure you have the preview type set to Interactive and preview as set to Dynamic.
Views
Replies
Total Likes
Thanks! It works. I REALLY appreciate the help!
Views
Replies
Total Likes
Views
Likes
Replies