If you are attempting to create the variable in your form Click on File,
Form Properties and then click on the Variables Tab. Click the + to add
a new variable. Name it and then paste your code from the
"myScriptObject" variable into your new variable. Make whatever changes
to reference your objects. Click ok. It will show in the Hierarchy
window now and if you highlight it and display the script window the
code should show there also. Deborah "Life is half spent before we know
what it is."Georg...
Send it along and I'll see what I can do. I do think that editing the
XML is not the approach that I would take. I think you need to take a
look at the form with the two dropdowns on it. Show the Hierarchy window
like I said and then find the code window which will have a little arrow
to collapse and expand just like the hierarchy window. Once you expose
that code window and you click in the hierarchy window on the script
object at the bottom you will immediately see the code that was input
To see the script object go to your top nav bar and click on window and
click on Hierarchy. If it doesn't automatically open the "left" side and
display your form and all its parts there should be a collapsed arrow
that if you hover your mouse over you should be able to open that
window. In the hierarchy at the bottom you should see the
"myScriptObject". Now to see the code that is in this script, right
above your form in deisgner there "should" be another collapsed arrow.
This is your code wind...
Are you using Adobe LiveCycle Designer? If so when you have the form
open in designer, click on the dropdowns you will see in the code behind
that dropdown where it calls a variable which is called myScriptObject.
Behind the drop-down list called "teams" it calls this script.Here is
what is in the scriptobject:var epl = "Chelsea,Manchester
United,Arsenal,Tottenham";var liga = "Barcelona,Real
Madrid,Valencia,Mallorca";var seriea = "Roma,Inter Milan,AC
Milan,Sampdoria";var eplArray = new Array();e...
Yes, you can use the value of the dropdown field to hide, unhide, etc.
Something like this. If you have the Action Builder it will build it for
you.if ($.boundItem(xfa.event.newText) == "Three")
Click on the Email Submit button and then Shift, F7 or go to the top
menu and under Window click "Object". It should open the properties box
of the email submit button and in the first tab, Field, it should
display an email address as well as the subject field.
I don't know if you want to take this approach but what I did on my form
where I had a dropdown with 2 values: Value1, Value2. I created 2
dropdown boxes that contained the values I wanted for Value1 and values
for Value2. I hid both of the dropdowns (Value1 and Value2 dropdowns).
When you made the selection you wanted from the first dropdown with the
Values of Value1 and Value2, then the appropriate dropdown box would
appear and a selection could be made. I placed these dropdowns right on
Take a look at this form. If you click in the Drop-down List: dropdown
and select one of the options you will note that another field appears
next to it and you can choose from it and show/hide different fields in
the form. If you open it in LiveCycle and go to the code events of these
fields you can see how it is coded. Debbie"Life is half spent before we
know what it is."George Herbert