- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2019 08:48 AM
I have a UI page. In one of the divs, I have using ngShow with multiple conditions. However, I cannot save the UI page because I get the error: "The entity name must immediately follow the '&' in the entity reference."
<div ng-show="condition1 && condition2">
</div>
Is there a workaround for this?
Thanks.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2019 09:24 AM
UI Pages are written in Jelly, which is XML, so you must escape ampersands. This should work:
<div ng-show="condition1 && condition2">
</div>
Ref: https://www.w3schools.com/xml/xml_syntax.asp
If that doesn't work, it looks like ${AMP} might be what you need to use: https://docs.servicenow.com/bundle/newyork-application-development/page/script/general-scripting/con...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2019 09:24 AM
UI Pages are written in Jelly, which is XML, so you must escape ampersands. This should work:
<div ng-show="condition1 && condition2">
</div>
Ref: https://www.w3schools.com/xml/xml_syntax.asp
If that doesn't work, it looks like ${AMP} might be what you need to use: https://docs.servicenow.com/bundle/newyork-application-development/page/script/general-scripting/con...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2019 01:26 PM
&& worked. Thanks Robert!