cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: Making a field as required on selection

pramod_gopisetty1
Active Contributor
0 Kudos

Hello Guru's, We are using Adobe Interactive Forms (NON PCR's) in WDJ application. I am having the below issue: My requirement is to make a field not required on selecting a value in the Dropdown. I could make that happen using the Java Script as below: InteractiveForm.SubForm.Fieldname.access = "readOnly" ; Fieldname.validate.nullTest = "disabled " ; This works fine. But in the application I have 2 other dropdowns, and on selection it is triggering the below line of code: ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", ""); I have the same code to disable the field after this call. But instead of disabling it is Highlighting the field. I tried to see if there is any code where I am setting focus to that field, but no where in the code I am doing that. Please help me in fixing the issue. Thanks, Pramod

Accepted Solutions (1)

Accepted Solutions (1)

pramod_gopisetty1
Active Contributor
0 Kudos

Anyone any ideas on how to fix this issue. Thanks, Pramod

ali_eshaghibeni
Participant
0 Kudos

Hi

as far as i know it might be a problem with your Stage customization, if Dropdown list is connected to a Screen Field of Infotype or Subtype and your screen field is a required field to create Infotype this may cause a problem in your form, it means when client want to leave page or submit the form this dropdown list consider as Required field. to ensure about this problem you can Use:

1. go to HRASR_DT

2. choose Scenario Steps

3. now you can just Uncheck your dropdown lists from this step, it does not means that client can not see this fields BUT however this fields are available for users but they are not required field for this step anymore.

please be consider in case that your Dropdown`s are connected to required Screen Fields of Info/Sub type (connected to Back-end PA/PT/PD) such problems are inevitable.

Hope this help you.

pramod_gopisetty1
Active Contributor
0 Kudos

Hi Ali, Thanks for the reply. But I am not using PCR forms using HRASR_DT. This is a Web Dynpro Java application using Interactive Form. How to remove the link to dropdown? And One other question, how to restrict to attach only PDF documents, if attaching any other document give an error. Thanks, Pramod

ali_eshaghibeni
Participant
0 Kudos

HI

i think this one would be helpful for you, if you be familiar with java programming or find someone expert then you can change the code in a way your code check the file extension of selected file before attach to your pdf.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0f4f84a-ceb0-2c10-718b-8a54fff0f...

if upper link does not work you can try this one:

Hope this help you.

pramod_gopisetty1
Active Contributor
0 Kudos

Thank you Ali, will look into it and get back to you. Thanks, Pramod

pramod_gopisetty1
Active Contributor
0 Kudos

The last event call that happens is Layout Ready. So did the coding there to make the field required or not required. Thanks, Pramod

ali_eshaghibeni
Participant
0 Kudos

good to hear you find a solution Pramod, Thanks for sharing.

Ali,

Answers (0)