In 'case_creation" UI page , need to Mandate "Opened For" and default it to empty on load.

Lk
Kilo Contributor

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 .

find_real_file.png

 

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.

4 REPLIES 4

Jaspal Singh
Mega Patron
Mega Patron

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.

Lk
Kilo Contributor

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!

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.

manasamaniac
Mega Expert

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