Hi All i am new to all this and need a few pointers?
I have a form which was made using Livecycle Designer 8.
On this form are a set of radio buttons (yes/no/NA).
Is there a way to change the state of a drop down list from read only or invisible and display a message after 'no' has been selected on a set of radio buttons?
Thanks in advance.
Views
Replies
Total Likes
bump
Can anyone answer this?
Views
Replies
Total Likes
Yes it can be done ....The RadioButtons are in a structure called a RadioButtonList. You can test this to see which button is selected
then if it is No do the work you want to do. Here is a quick example of what it might look like:
if (RadioButtonList.rawValue == "No"){
DDList.presence = "visible";
app.alert("Display your message here")'
} else {
DDList.presence = "hidden";
}
Hope that helps
Paul
Views
Replies
Total Likes
Paul,
thanks for the help but i have a few questions?
I am new to javascript do i put this action on the mouseup action or something
else?
Does the value of the radiobutton list have to have a default value, at present
it is empty?
The DDlist is currently visable on the form do i have to make it hidden first?
Thanks Andrew
Views
Replies
Total Likes
I woudl put the code on the Change event of the RadioButtonList. That way whenever a selection is made the code will be executed. By default there is no value .....the user needs to make a selection to indicate what they want. I do not know precisely what you are trying to accomplish so you can decide whether you want the list visible/hidden by default based on how you want the form to work.
Paul
Views
Replies
Total Likes
Paul,
Thanks for the help it is much appreciated.
Would it cause a problem for the java script if i have the DDlist in a table?
As i have tried the code and it does not work.
When i checked the object properties for the DDlist the hidden option is not
available which leads me the the previous question.
Views
Replies
Total Likes
No being in a table shoudl not affect it.....but you will more than likely have to include the path to the object. Without seeing your form it is impossible to tell you what it should be. You can place your cursor in the script editor where you want the reference to the DDList. Then hold down the Ctrl key and move your mouse to point to the field you want to reference. When the cursor hits the canvas it will change to a V. When you get to the field you want click the mouse button and the expression that you need will be placed in the script editor. This is path relative to where the context in which the script will be run. Now you can simply add the "." and whatever method/property that you want to reference.
Hope that helps
Paul
Views
Replies
Total Likes
Thanks again i will give it a go.
Views
Replies
Total Likes