cancel
Showing results for 
Search instead for 
Did you mean: 

Populating data to another field from Adobe form

john_lee7
Participant
0 Kudos

Hi.

I have an Adobe interactive form that when a user select (from a drop-down list) or type in data in a field, I want another field to populate only data relate to input user entered on first field.

I know this is possible if I don't use Adobe form template, but can I do this with Adobe interactive form (created from SFP).

Thanks for all your help in advance.

John

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi John,

This is Surely possible,

Do this:

If u r using ActiveX or Native type of Dropdown, u may find some autogenerated codes on certain events.

At the exit event, u'll find some code where in a place will be given where u can write the code after selection has been made, there u can place ur code as given below:

// START OF CODE - TO RUN AFTER SELECTION HAS BEEN MADE

var G = "Green";

var R = "Red";

if (this.rawValue == "Key that is returned to context after dropdown is selected")

{

BodyPage.TextField.rawValue = G;

}

else if(this.rawValue == "Some other key for which u wud liketo change value in the text field")

{

BodyPage.TextField.rawValue = R;

}

else

{

}

// END OF CODE - TO RUN AFTER SELECTION HAS BEEN MADE

Hope this helps..

Thanks,

Amita

john_lee7
Participant
0 Kudos

Thanks.

This is great.

I do have one more question.

How do I change value dynamically instead of hard coding the value.

Thank again.

Former Member
0 Kudos

Hi John,

Surely we can do that as well.

For that u can find a sample form available at ur desktop itself, just follow the path

C:\Program Files\Adobe\Designer 7.1\<Language Key>\Samples\Purchase Order\Dynamic Interactive\Forms

There u'll find a Purchase order form, in that form if u open it in Adobe Designer u'll find certain script objects that are being used to populate the dropdowns..

These script objects are just the functions modules that are used in ABAP.

Take a look..May be helpful to u..

Thanks

Amita

john_lee7
Participant
0 Kudos

Thanks for the information.

I think the code will help me solve the problem.

Answers (1)

Answers (1)

john_lee7
Participant
0 Kudos

I am sure someone has done this before.

Please help with this question.

Thank you.