How to make Contact type default to NONE in incident and ritm?

Naveen Kumar
Tera Contributor

The req is 

the Contact type for Incidents defaults to None when a user opens/creates a new Incident on the Platform and 

the Contact type for RITMs defaults to None when a user opens / creates a new record form on the Platform.

1 ACCEPTED SOLUTION

SumanthDosapati
Mega Sage
Mega Sage

Hi,

Please do not post duplicate questions and make confusions.

You posted same question three times.

You can try below approach.

> Add the variable to variable set.

> Include variableSet in all required catalogs.

> Set the default value of variable as NONE in variable configuration itself.

> You can create an onLoad client script for that on variable set 

> In UI Type : select as Service Portal

> Add this script

g_form.setValue('contact_type', 'PHONE');  //check backend values

 

Mark as correct and helpful if it solved your query.

Regards,
Sumanth

View solution in original post

5 REPLIES 5

Musab Rasheed
Tera Sage
Tera Sage

Hello,

Contact type is mandatory once so you cannot bypass unless you have created Incident from Portal end through Record producer and to make contact type as None through RP simply card code in script part like below

current.contact_type = '';

Same case for RITM as you can set either in 'Run script' activity or 'Set values' activity through workflow.

Please hit like and mark my response as correct if that helps

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

Hi,

I have understood for the Incident,

But for ritm , how do I make the Contact type for RITMs defaults to None when a user opens / creates a new record form on the Platform.

For RITM as you can set either in 'Run script' activity or 'Set values' activity through workflow.

Also you can write simple On before BR on sc_req_item table either for one item or for all and set Contact type to None. it's simple

Please hit like and mark my response as correct if that helps

Regards

 
Please hit like and mark my response as correct if that helps
Regards,
Musab

SumanthDosapati
Mega Sage
Mega Sage

Hi,

Please do not post duplicate questions and make confusions.

You posted same question three times.

You can try below approach.

> Add the variable to variable set.

> Include variableSet in all required catalogs.

> Set the default value of variable as NONE in variable configuration itself.

> You can create an onLoad client script for that on variable set 

> In UI Type : select as Service Portal

> Add this script

g_form.setValue('contact_type', 'PHONE');  //check backend values

 

Mark as correct and helpful if it solved your query.

Regards,
Sumanth