cancel
Showing results for 
Search instead for 
Did you mean: 

Interactive form

Former Member
0 Kudos

Hii all,

I got a query where in need to bind the dropdown list with a check box . The adobe form is created with web dynpro..My Question is that --if i selected any field by drop down then automatically the check box of that field tick ..Please help me if u know.

thanks in advance

nitin

Accepted Solutions (1)

Accepted Solutions (1)

Florian
Active Contributor
0 Kudos

I'm sorry,

but within this information nobody is able to help you out. You need to explain that with more details.

Just make some screenshots to show us your problem and also show us the settings you made.

Regards

Florian

Former Member
0 Kudos

Hii Florian ,

Thanks for the replly ...My query is ---I have a custom dropdown list which i have created in adobe form .

By dropdown list i can select A,B,or C..Now i also have 3 Check boxes with name A , B and C..Now my query is if i selected A from the drop down list , then the check box with name A will automatically selected and will show during print preview.

Thanks a lot in advance ,

Nitin

Florian
Active Contributor
0 Kudos

Hi Nitin,

I will test it on Monday and give you a clue.

I do not got a system avaible right now, so I'm sorry for the moment.

Put it on the todo-and-not_forget-list

Helpful would be, if you just post your JAVAscript-Coding here. Perhaps we can figure it out earlier.

Regards

Florian

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Nitin ,

You need to use either java script or form calc to achieve this.

follow this logic.

In the exit method of your drop down, read the selected value of dropdown and set it to desired element value.


var sNewSel = this.rawValue;

if ( sNewSel = 'A' )

// now here access ur checkbox object and Set the value  to A

Regards,

~Raj

Florian
Active Contributor
0 Kudos

Ah,

very good, so i tried it exactly the same way Raju showed and it works fine.

Sure, there have to be some lines more, to make a correct syntax,

but that should be not the problem

Problem solved?

Regards

Florian

Former Member
0 Kudos

Thanks florian , Thanks Raj for the help..I have tried this and it works fine .

var valtype = xfa.event.newtext.

if(valtype=="A")

{

subform1.checkbox1.rawvalue = "X";

}

endif

Can both of u pls tell me how to use if , else, elseif in javascript bcz i have tried it but doesn't work.

regards,

Nitin

Florian
Active Contributor
0 Kudos

Hi Nitin,

here is a discusion, where you get an example of using it.

Regards

Florian