cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding Fields in HCM forms

Former Member
0 Kudos

Hi Experts,

Im working on HCM forms and im new to this.

My requirement is as follows.

I have two screens in my form HR and Manager .

Now the requirement is like I have to show some fields in HR Screen and hide those fields in Manager Screen.

I have created two scensrion steps HR and MNGR.

Can you please let me know how can I achieve this.

Im trying this since three days.

Thanks & Regards,

Kranthikumar Palle

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kranthikumar,

You cas achieve this by adding FORM_SCENARIO_STAGE(of type ASR_FORM_SCENARIO_STAGE) field to your form scenario.

In the form scirpt hide/show the form fields depeding on this context field. Refer to any of the sample process(for ex creare position).

Regards,

Bhagya

Former Member
0 Kudos

I have done these things already which u have mentioned.

Now I have to create separate process for each of the scenario steps.

Because when ever im launching the form in both HR,MGR Im getting the value MGR only.

So how can I do this

regards,

Kranthi

Former Member
0 Kudos

Hello!

I am very new in javascipt. Can you explain me how to access to the field FORM_SCENARIO_STAGE in javascript?

Thx!

Former Member
0 Kudos

Add a field to your badi with data element ASR_FORM_SCENARIO_STAGE.

Bind it to a isr text display on your form, check the value in all stages.

if (this.rawValue == "Approve"){

page.subform.field.presence = "invisible";

}

Answers (0)