I want to add Info message in Portal view.

JVINAY
Tera Contributor

Hi Team.

I want to add Info message in Poral view.

Currently this message showing in platform view 

JVINAY_0-1744789241870.png

But I want to add this message in Portal view also

Condition : This message should remain display until "CAN PROVISION PROD (u_approved_for_production_provisioning) "box  is checked.

 

Can please help me how to achieve this.

Thank you. 

 

 
28 REPLIES 28

JVINAY
Tera Contributor

@Shree_G ,

In Portal not working.

I have modified as you mentioned above , but Not Working as expected.

@JVINAY : My mistake, didn't change the method to showFieldMsg(). Try again :

function onLoad() {

    var EnvironmentsValue = g_form.getValue('u_environments');
    var CanProvProd = g_form.getValue('u_approved_for_production_provisioning');
    var StateValue = g_form.getValue('state');


    if (EnvironmentsValue == '45f9c6b9db9a4f00eed27bedae961953' && CanProvProd == 'false' && StateValue !== '110') {
        //If the requested environment is prod only, and the Can Provision Prod checkbox has not been checked, and the state is not prod readiness, display this message

        g_form.showFieldMsg('u_approved_for_production_provisioning' , 'This request is for production only.  In order to proceed with this production-only request, a Cloud Intake admin will need to check the CAN PROVISION PROD box and click save.' , 'info');
    }
}

If this solution helped resolve your issue, please consider marking it as helpful or correct.
This will assist others in finding the solution faster and close the thread.

JVINAY
Tera Contributor

@Shree_G ,

I have updated but not working portal and Plat form also.

 

JVINAY
Tera Contributor

@Shree_G ,

"CAN PROVISION PROD (u_approved_for_production_provisioning) " This field is available in Platform only , not available in Portal view . 

I want achieve by Using Display Business rule and client script. 

if it is possible or not. Please let me know.

@JVINAY 
Info messages will b autoflushed automatically after certain duration based on the system property "glide.service-portal.notification_timeout.seconds"