Jelly script not working
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi Guys, I am trying to hide one of the macro 'add_location' present beside assignment group field when the case state is resolved or closed complete. However I am not able to get this worked. Please suggest. Thanks
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<j:set var="jvar_num" value="assign_to_user_${ref}"/>
<g:evaluate var=caseState">
current.getValue('state');
</g:evaluate>
<a id="${jvar_num}" onclick="addLocation('${ref}')">
<img border="0" title="${gs.getMessage("Add Location")}"
</a>
<script>
function Onchange_state(element,original, changed, loading){
var visibility = 'hidden';
if(changed.state == '3' || changed.state =='150') { // case state
e.style.visibility = visibility;
} else {
e.style.visibility = 'visible';
}
}
</script>
</j:jelly>
0 REPLIES 0