- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2023 10:57 PM
Hi,
I need to create a new form button on the incident table named 'open chat'. This button will be available only if the login user's email starts with the letter 't'. When clicking on the button, needs to redirect to this url:
https://hi.services/direct/ + gs.getUser().getEmail() + '.com'
How can I achieve that? What should I put in the script section and the condition section?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2023 11:30 PM
Can you try this:
UI action : Server
Condition:
(((gs.getUserName()).toString()).startsWith('t'))+"" == "true"
Script:
action.setRedirectURL("https://hi.services/direct/" + gs.getUser().getEmail() + '.com');
If my answer solved your issue, please mark my answer as ✅Correct & 👍Helpful based on the Impact!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2023 11:30 PM
Can you try this:
UI action : Server
Condition:
(((gs.getUserName()).toString()).startsWith('t'))+"" == "true"
Script:
action.setRedirectURL("https://hi.services/direct/" + gs.getUser().getEmail() + '.com');
If my answer solved your issue, please mark my answer as ✅Correct & 👍Helpful based on the Impact!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2023 11:39 PM
@Prince Arora hi can you please write the condition with gs.getUser().getEmail() instead of gs.getUserName()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2023 11:48 PM
Can you try this:
(((gs.getUser().getEmail()).toString()).startsWith('t'))+"" == "true"
If my answer solved your issue, please mark my answer as ✅ Correct & 👍Helpful based on the Impact.