Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Making fields visible or invisible on the form Dynamically.

Hi All,

In my case I have a drop down field having various values on ADOBE form.According to those values the remaining fields in the form should get visible or invisible accordingly. Can you please help me out in javascripting required in this case?

I have tried scripting as given below but it is not working. I request you to please tell me whats the problem in this and what needs to be done to achieve this.

For Example in case if i select "03 - Transfer" in the dropdown field named OPTION then I want to make New Personal Sub area field as visible and editable on the form so that user can enter data into it ELSE it should not be visible on the form.For this the scripting i wrote in javascript in the event CALCULATE for this field is as follows.

if($record.OPTION.DATA.FIELD == "03 - Transfer")

then

this.access == "open"

else

this.presence = "invisible"

endif

But this is not working when I check the form on portal.Please let me know what I need to do inorder to achieve this functionality.

I have wrote the similar code in CALCULATE event for each field on the form but the form not working according to requirement.

Please provide me with information how to decide the event in which we should write the script?

Thanks in Advance.

Sarang

Former Member
Not what you were looking for? View more on this topic or Ask a question