- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2024 06:27 AM - edited 09-15-2024 06:32 AM
Hi
How can we hide comment and Olympus fields on cloud intake table
I have written client script to hide it on cloud intake table and these fileds stored on caas intake table but unable to hide it on cloud intake table and also check these 'u_Envi'(paas account) is exists in caas accounts or not.
Any one please assist these highly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 02:06 AM - edited 09-16-2024 02:07 AM
Ok write onLoad client script
Var env= g_form.getValue("u_eninorment");
var ga=new GlideAjax("checkEnv");
ga.addParam("sysparm_name ","validateEnv");
ga.addParam ("sysparm_env",env);
Once we get response
if( answer=="true")
g_form.setMandatory('comment',false);
g_form.setVisible('comment', false);
g_form.setVisible('Olympus', false);
in script include
ValidateEnv:function ()
{
var gr = new GlideRecord("Cloud_intake_additional_fields");
gr.addQuery('cloudaccountReqfield', this.getParameter('sysparm_env'); // Update correct fieldname of cloud acc req
gr.query();
return gr.hasNext();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2024 07:42 AM - edited 09-15-2024 07:47 AM
can you share screenshot of those fields from cloud intake table? and what exactly do you need with u_envi ??
onload CS:
g_form.setVisible('comment', false);
g_form.setVisible('Olympus', false);
envi exist or not:
var gr = new GlideRecord('caas_accounts');
gr.addQuery('u_Envi', passDynamically);
gr.query();
return gr.hasNext();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 01:51 AM - edited 09-16-2024 01:53 AM
Hi Mani A ,
below Image I have marked two fields
we need to check u_eninorment ( CLOUDxxx3762) these cloud account store in Cloud_intake_additional_fields table or not , my requirement these cloud account stored in Cloud_intake_additional_fields table i need to hide Two fields.
FYR Attached (u_eninorment ( CLOUDxxx3762)
"I need to Hide two fields in Existing records only"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 02:06 AM - edited 09-16-2024 02:07 AM
Ok write onLoad client script
Var env= g_form.getValue("u_eninorment");
var ga=new GlideAjax("checkEnv");
ga.addParam("sysparm_name ","validateEnv");
ga.addParam ("sysparm_env",env);
Once we get response
if( answer=="true")
g_form.setMandatory('comment',false);
g_form.setVisible('comment', false);
g_form.setVisible('Olympus', false);
in script include
ValidateEnv:function ()
{
var gr = new GlideRecord("Cloud_intake_additional_fields");
gr.addQuery('cloudaccountReqfield', this.getParameter('sysparm_env'); // Update correct fieldname of cloud acc req
gr.query();
return gr.hasNext();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 06:58 AM