AnsweredAssumed Answered

customize SET.OEMAIL and SET.OPHONE

Question asked by mayur.malhotra.1 on Feb 9, 2018
Latest reply on Mar 6, 2018 by mayur.malhotra.1

Hi 

 

There is a requirement to capture the Set.OEMAIL and SET.OPHONE from the Incident/Request form ( Employee) which is a variable and pushing data in Description of Initial Activity Logs.

 

Is there any way to capture these values if customer changes or what ever is available in the form in custom fields in Call_Req. We want this data to be populated at form level (either javascript) as we have to do manupulations at POST_VALIDATE later on.


I have tried below things but the output is partial

1. I have changed the out of the box function but result is 0

 

function check_and_save() {
if ( window.document.forms["main_form"].elements["SET.SET.OPHONE"].value.length > 0 ||
window.document.forms["main_form"].elements["SET.SET.OEMAIL"].value.length > 0 )
{
sap_category=window.document.forms["main_form"].elements["SET.SET.OEMAIL"].value;
call_save();}

 

2. I have added below lines but it does not populating updated values (customer typing at the time of loggin)

<input type=hidden name=SET.zcuemailid value="$arg.SET.OPHONE"> 

 

3. I have also changed the fields like below instead of SET.OPHONE then two issues are coming. One Email id is showing as abc$acd.com. It's replacing the @ value with $ in at the time of logging.

 

<PDM_IF "$args.sap_category" == "">
<PDM_SET args.sap_category="$cst.phone_number">

</PDM_IF>
<PDM_MACRO name=dtlTextbox hdr="Phone Number" attr=sap_category size=30>

 

<PDM_IF "$args.zcuemailid" == "">
<PDM_SET args.zcuemailid ="$cst.email_address">

</PDM_IF>
<PDM_MACRO name=dtlTextbox hdr="Email Address" attr=zcuemailid  size=30>

 

Second issue with this code, actual phone number and email id is showing in Activity logs. I have removed fields like OPHONE and OEMAIL, still it's showing values but original one which are available in Database for that employee.

 

Any idea to get the newly entered values of Ophone and OEmail in 2 different custom columns.

 

Thanks

Mayur

Outcomes