- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2022 11:00 PM
Hi,
When I am submitting record producer form from the portal alert message is displayed. If i click "Ok" on the alert message redirect me to the homepage.
Thanks in advance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2022 11:29 PM
Hey,
To demonstrate your issue, I have used an onChange client scrip, you can have your logic the code more or less remains the same
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (newValue == "true") {
var url = "https://community.servicenow.com/communityid=community_user_profile&user=33b26047db00441823f4a345ca96192a";
alert("hey");// your alert
top.window.open(url, "_blank");// code to redirect to url
}
}
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2022 11:23 PM
Hi
You will have check the script for the button to which URL it's redirecting to.
This is how you set the redirect URL :https://community.servicenow.com/community?id=community_question&sys_id=c7d4c522db0718103daa1ea66896...
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2022 03:29 AM
Hi
Glad to see my answer helped you, Kindly mark the answer as Correct & Helpful both such that others can get help.
Thanks,
Sandeep

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2022 11:29 PM
Hey,
To demonstrate your issue, I have used an onChange client scrip, you can have your logic the code more or less remains the same
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (newValue == "true") {
var url = "https://community.servicenow.com/communityid=community_user_profile&user=33b26047db00441823f4a345ca96192a";
alert("hey");// your alert
top.window.open(url, "_blank");// code to redirect to url
}
}
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2022 04:43 AM
Is your issue resolved?
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar