cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Adobe Forms

Former Member
0 Kudos
548

I am currently working with NWDS 7.14 and Life Cycle Desiger 7.1. My Requirement is the following: dependent on a user input (e.g. selected checkbox) i want to switch the attus of certain ui elements to "invisble".According to some previous posts, I use the follwing JS-code to achieve the described functionality:

var check = CheckBox1.rawValue;

if (check== '1') {

Subform3.presence="visble";

Subform3.presence="hidden";

}

(the code lies in the exit event of the checkbox)

unfortunately, nothing happens, the code does not work.

Could anyone please provide help?

Accepted Solutions (1)

Accepted Solutions (1)

vaibhav_tiwari
Contributor
0 Kudos

Hi Alexander,

ACF is a pluggin for UI elements like buttons, textfields, radiobuttons etc. We have to install ACF in order to make these fields work correctly. If you are writing the same code as you have mentioned in the post then change it as following:

1. if you want to show the subform.

var check = CheckBox1.rawValue;

if (check== '1') {
Subform3.presence="visible";
}

2. if you want to hide the subform.

var check = CheckBox1.rawValue;

if (check== '1') {

Subform3.presence="hidden";

}

I hope it will work.

Regards,

Vaibhav Tiwari.

Answers (6)

Answers (6)

Former Member
0 Kudos

Still no solution.

The issue described above does not neither am I able to foll a dropdown dynamically as described in other threads.

Could Internet Explorer 7.0 be an issue? Should I use Explorer 6.0?

Former Member
0 Kudos

Hi Alexander,

Did u manage to resolve the problem?

Former Member
0 Kudos

yes, that's actually what I was tying to do initially.

We are talking about a regular Subform right? No special setting?

Former Member
0 Kudos

No special subform, simple subform will do.

Regards,

Arafat

Former Member
0 Kudos

I amneded the script and installed ACF and so on. It still doesn't work in PDF Preview Mode.

When I amended the presence property on a conventional Textfield. It only affects the Value inside the Textfield. E.g. if set the presence to invisible, the text inside the Input field is gone, but the label and the inputfield are still visible, whereas setting it to hidden, doesn't affect the input field at all.

not a really complex problem, but nothing seems to work.

I really assume the preview mode shows how the form behaves once the WebDynpro app including the form has been deployed to server, right?

Former Member
0 Kudos

Hi Alexander,

Please use a subform for this field and make the subform invisible based on condition. Hopefully it will work.

Regards,

Arafat

Former Member
0 Kudos

I just installed ACF on my system, but no change in behaviour so far.

As far as I understand ACF is a kind of a plugin for the Internet Explorer, but the Form is shown in Adobe Reader, so therefore I do not understand how the installation of ACF could affect the behavoiur of the rendered Form in Preview Mode in NWDS/Life Cycle Designer...

Former Member
0 Kudos

If your pdf type is put as activex, ACF is rerquired. else you can set the value as native in the interactive form properties.

If you are trying in the formcalc. You can try out writing the script in the click event of the check button.

if ( $.rawValue == 'X' ) then

$.parent.<SOM hierarchy>.presence = "invisible"

else

<.

endif.

You can try debugging it manually by setting a text field to see the value changes.

You may also use java script. But for these simple scripts, it is recommended to use form calc.

Thanks and Regards,

Antony John Isacc.

Former Member
0 Kudos

No, I do not remember installing Active Component Framework (ACF).

Is that required? How would I do that? Is it necessary to display the form in Preview mode already?

vaibhav_tiwari
Contributor
0 Kudos

Hi Alexander,

You can download it from SAP service market place i.e. service.sap.com.

An xACF patch is available there download it and install. I think it will start working.

Regards,

Vaibhav Tiwari.

vaibhav_tiwari
Contributor
0 Kudos

Hi Alexander,

Is ACF installed on your system.

Regards,

Vaibhav