- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-07-2019 09:02 AM
I am attempting to redirect to an external url after a user submits a record and a particular field is filled with a unique value. I need to take that unique value, plug it on the end of a static url and then redirect to it. example is
https://iwantmystuff/service/{unique value}. I believe what I need to do is define the url using something like
var url = gs.generateURL and then gs.setRedirect(url); but I am not utilizing this correctly as I am commenting out most of the code due to the // in the first line. I am obviously making a rookie error I don't realize. Can someone please help me craft this correct? The unique value is coming from a scoped application that is open to global scripts so this should be accessible. Do I also need to do a separate call for that unique value's value? To those who stop by, thank you very much for your time!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-07-2019 09:14 AM
Hello please try the following:
var mainURL = 'https://iwantmystuff/service/';
var urlFinal = mainURL + current.FIELD_NAME.toString(); //Replace with your form field
gs.setRedirect(urlFinal);
--David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā03-17-2020 01:40 AM
Thanks David, I will try this once.
Regards,
Priya.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-07-2022 02:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā08-20-2021 07:35 AM
thanks worked