cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding field on form

Former Member
0 Kudos

Hi,

I am workingon HCM process & forms:

My requiernmrnt is:

Form has 2 parts

part 1: It has employee information and a button "Update Display"

part 2: It has two field :- Hourly base rate and Annual salary and other pay scale related information fields.

Now when process is executed, part1 should appear on form. when user presses "Update button", then part 2 should be displayed.

Also here if amployee is hourly, then Hourly base rate should be displayed.

If employee is salaried, then annual salary shoud be displayed.

To decide employee is hourly or salaried, i have one flag coming from form fields.

How to achieve this. Please suggest.

Regards,

Ashish Gupta

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

In Script check the flag and do the hiding and showing of those fields.

if($record.<FLAGFIELD>.DATA[*].FIELD == "1")

then

this.presence = "visible"

else

this.presence= "hidden"

endif

Then in the button click change the visibility.

data.<Page>.<container>.<field>.presence = "visible"

Kind Regards

Mukesh