how to display UI macro in change request form for specific user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2023 04:17 AM
I have wrote this UI macro to display a small logo beside a field (u_external_reference) that links to an external website
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<img src="some_logo.jpg" stype='width=1px, hight:1px' onclick="changelist()" title="{gs.getMessage('go to website'}">
</img>
<script language="javascript">
function changelist(){
var tableName='change_request';
var url='some websit link';
window.open(url,'_blank');
return false;
}
</script>
</j:jelly>
I want to display this UI macro to only one user how can i do that? any tips?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2023 04:46 AM
Hi @balmansour ,
You need to apply an if condition in ur jelly script & write the code der for displaying it to a single user.
Pls check this link
Thanks,
Danish