In my HCM PF, i have 2 sections - 1) Employee 2) Manager
Under Manager Section, there is a Mandatory text field 'Comment' , which should be 'Hidden' under Employee Section.
In order to make this field mandatory, i have defined it as 'Required Entry' under the Process Fields
If the field is mandatory, it will result in an error while filling Employee section.
I dont want the red border appearing around my comment field in my form, so i am not setting property as User Entered-Required in UI property.
Can anyone please guide me how to proceed with this funcitonality. I want to keep the field hidden in Emp section, yet it should be mandatory under Manager section.
Thanks in advance,
Seriously? Those are some really basic HCM P&F concepts.
I will try to help.
First off....why do you have a separate field for "manager comments"? WHy not use the standard comments fields (current/previous) and let the framework handle them?
Now for showing/hiding sections of form.....several ways to do this. If it were me...
1. I would have the employee and manager steps in different form scenario steps/stages (personally I would probably have them in different form scenarios all toghether but sharing same form simply for scalability).
2. Define the standard field for form_scenario_stage in your form scenario fields (look it up in documentation for how to define this....I'm not spoonfeeding you)
3. Add the form field from #2 onto your form somewhere and make it hidden/invisible.
Now.... for making fields mandatory, hidden/visible/invisible, open to edit/read only......that is all done in scripting and is VERY basic. There are TONS of examples on how to do this all over the web with simple Google searches.