Gareth Cantrell Posted July 14, 2023 Share Posted July 14, 2023 When creating a custom button using the "Popup" action, any variables added to the URL are not substituted when the button is activated. For example, trying to open a Google search on the request summary in a popup results in a search for "[[h_summary]]", rather than the actual summary of the request. See below screenshots for examples: 1) Custom Button definition: 2) Result of variable substitution: Link to comment Share on other sites More sharing options...
Steve Giller Posted July 14, 2023 Share Posted July 14, 2023 This is working fine on my Instance if I open the URL: As noted on your screenshot, "a Popup needs to be embeddable" - I'm not sure if that's an issue with the URL itself, or with the popup method, I'll get that looked into. Link to comment Share on other sites More sharing options...
Gareth Cantrell Posted July 14, 2023 Author Share Posted July 14, 2023 @Steve Giller yes, "Open URL" action works as expected, its just in the Popup action that the variable substitution doesn't work. In my example, I passed the parameter "igu=1" to Google which allows their page to be embeddable and it definitely works as an embeddable page (see my 2nd screenshot). Link to comment Share on other sites More sharing options...
samwoo Posted July 14, 2023 Share Posted July 14, 2023 I tried it with popup instead of URL and as Gareth mention, it doesn't work. It displays [[h_summary]] in the Google Search field, instead of the actual summary of the ticket. URL works though but I can see the benefits of using popup, so this certainly needs looking at. Link to comment Share on other sites More sharing options...
TrevorHarris Posted July 17, 2023 Share Posted July 17, 2023 We have found the problem with opening the popup and will include a fix for it in the next core UI release Thanks Trevor 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now