- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2022 06:04 AM
Hi Team,
I am trying to build a service portal where we need to show dynamic URLs on the screen. For this we are using iframe and from server and client script we are calling the URL in variables. However when we put variable in HTML Template in iframe or script i.e. src="URL" then it does not work. See below snapshot with three use cases -
1. DIV - In this variable is working fine.
2. iframe with URL variable in SRC - This is not working
3. iframe with URL hardcoded in SRC - This is working fine.
My question is on 2nd point i.e. how to pass URLs as variable or part of URL as variables.
Attaching snapshot of results for better understanding.
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2022 07:18 AM
I was able to get this working using information from https://community.servicenow.com/community?id=community_question&sys_id=fe0c4b25db9cdbc01dcaf3231f96....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2022 07:18 AM
I was able to get this working using information from https://community.servicenow.com/community?id=community_question&sys_id=fe0c4b25db9cdbc01dcaf3231f96....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2022 11:39 PM
Thanks, I see you are using trust URL in the client controller. I guess this will solve my issue.
I will try and update here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2022 12:09 AM