cancel
Showing results for 
Search instead for 
Did you mean: 

How hide comments on conditional base in HCM Processes and Forms - FPM

suresh_namani
Participant
0 Kudos

Hi Experts,

I am trying to hide comments fields ( HRASR_PREVIOUS_NOTES and HRASR_CURRENT_NOTE) on conditional based. I have created a group and created text view element in that group and added previous and current note fields. And I tried to hide the textview element, so that the total group would be hidden. But it not hiding the comments fields. Kindly help me with a solution.

Thanks & Regards,

Suresh

Accepted Solutions (0)

Answers (1)

Answers (1)

ChrisSolomon
Active Contributor
0 Kudos

It is actually quite easy. I have done this on just about every HCM P&F project I have been on.

For Adobe forms, simply check the element with Javascript for "is empty" (or whatever your condition is) and hide accordingly.

For FPM, add the fields in your "form fields" and you will have visibility to them automatically. Then set their UI attributes to be set by some generic service of your own. In your generic service, check conditions and set UI attributes as needed.

Former Member
0 Kudos

Hi Chris,

If you use your own form fields then "previous comments" field (the one you create instead of the standard FPM field) won't show a concatenated text of previous comments...

suresh_namani
Participant
0 Kudos

Hi Christopher,

Thanks for your reply.

I tried to add the field in form scenario fields. But it is giving the error as 'Name HRASR_PREVIOUS_NOTES cannot start with 'HRASR''. Can you kindly tell me how to add the field in form fields.

Thanks & Regards,

Suresh

Former Member
0 Kudos

Dear chris

How we can add them to form senario in case of FPM the name 'HRASR_PREVIOUS_NOTES' is not allowed to be added in form scenario .

Regards

Ghadeer

ChrisSolomon
Active Contributor
0 Kudos

Ok....since a few of you asked for FPM forms....think outside the box a bit.

I wrote another blog about how to control table cells by "binding" them to a "technical field" for visibility.

Same thing...you will have to make an enhancement in the feeder class.....and in there, you will "bind" your "technical" field to the visibility of the "notes".

Then, just as in the blog, setting your "technical" field in your own generic service (or directly) will affect if the notes are shown or hidden.

Former Member
0 Kudos

Thank you , I did it

ChrisSolomon
Active Contributor
0 Kudos

Great! Why not blog it for others now?

Former Member
0 Kudos

I will Blog , thank you for Idea