I want to add Info message in Portal view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 12:46 AM
Hi Team.
I want to add Info message in Poral view.
Currently this message showing in platform view
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 02:53 AM
you should compare newValue
if(newValue.toString() == 'false')
If my response helped please mark it correct and close the thread so that it benefits future readers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 03:04 AM
I have written below code but not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 03:21 AM
Hello @JVINAY ,
Able to share your onLoad script which works in the platform to help more on the code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 03:26 AM
Hi @Shree_G ,
Onload Client script Platform view:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 03:42 AM
@JVINAY : Take backup of the script and try below code in the same onLoad script:
added -->
g_form.addInfoMessage('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' , true);
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.addInfoMessage('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' , true);
}
}