Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

How to change the script event?!?

$
0
0

Here I have a small form with two different parts...

 

The first part is a table containing many checkboxes to be able to show whatever form you want to fill up..

All of the checkboxes create a form into a table which each row represents the form to fill-up.

 

When you click 1 checkbox, it adds a row to the table with some values needed for the form..

In that form there is a chance to have 2 or 3 radiobuttons, depending on the checkedbox which each do something different..

 

the 1st one hides a new table to fill up information (under the radiobuttons),

the 2nd one shows up the new table with some values to show instructions into labels...

the 3rd one shows up the new table with some other values to show different instructions into labels.. (This radiobutton is only in half of the forms, so it is hidden)

those labels must be different for each checkbox chosen

 

instead of making a huge script in my radiobutton change event, and writing all the different possibilites

i'd rather create the script depending on the checkedbox the user have chosen...

 

Right now I'm using something like : this.resolveNode("...radiobuttonList").event__change.script.value = "--_ Write all the new code here_--";

 

After this line is written and everything is working... I show up a messageBox to see the result which is all correct..

But when I'm clicking on the radiobuttons nothing is working at all...

the only code working is the initial code written in the event

 

Anyone have an idea if I'm missing something?!?

Thanks!


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>