In 'case_creation" UI page , need to Mandate "Opened For" and default it to empty on load.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2019 09:22 AM
The below is the HR New case Creation Ui page .
In 'case_creation" UI page , I need to Mandate "Opened For" and it should NOT get auto-populated with the value filled in" Search for Employee" field .
Is there any way to configure it in the "sn_hr_core_config_case_creation( Case Creation Configuration)"? Also assistance in modifying the Ui page script is appreciated , TIA.
- Labels:
-
HR Service Delivery

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2019 09:55 AM
Hi,
This requires lot of work. All you need is to look for UI Page: case_creation create a copy & then tweak code in Client Script section of the Page. Once done you will have to pass the End point value to the Create New Case module of HR Case Mangement.
Thanks,
JAspal Singh
Hit Helpful & Correct on the impact of response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2019 10:12 AM
Thanks Jaspal , I did cloned the Ui page & was able to modify the client script section to empty out the " opened for" field. However , making the same mandatory is quite tricky .Looking for help on Making the field mandatory!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2019 10:41 AM
Hi,
This would require an update in HTML part of the code. Look for line 513 where class="required-marker" mandatory="true" is used. Something similar will have to be used for fields that appear to the right.
Thanks,
Jaspal Singh
Hit Helpful or Correct on the impact of response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2019 12:07 AM
Hi,
Check if you can implement similar to what is present in UI page
"$pwd_change"
<label for="processSelectId" class="control-label col-sm-4 text-right">
<span class="required-marker sn-tooltip-basic"
title="${gs.getMessage('Required')}" data-original-title="${gs.getMessage('Required')}" aria-label="${gs.getMessage('Required')}"></span>
${gs.getMessage("Change password for")}
</label>
<span class="col-sm-8">
<select name="processSelect" id="processSelectId" class="form-control" required="true" aria-required="true" onchange="showHidePasswordChangeFormFields(); clearFormFields(); updatePwdRuleHint(); updatePwdStrengthVisibility(); updateMandatoryMarker(this, 'process_select_pass_form_group')" aria-describedby="error_msg_select"/>
</span>
Thanks
Manasa