Hi, I have a tabular report which has 3 buttons on the Search Result.
View Details (Standard Button)
Delete (Standard Button)
Copy (Custom Button)
I want to hide the Copy button if the condition "PAT" is present in the "In Scope" field. I'm able to hide the "Delete" button with the following code which is contained in an HTML block:-
<script>
var condition = ("[@field:In_Scope]" == "PAT");
hideDelete([@cbRecordIndex], condition);
</script>
But when I change the "hideDelete" in the above code to "hideCopy" it doesn't work and the "Copy" button is still visible. Here's a screenshot of the output.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
RonAnderson
Hi, I have a tabular report which has 3 buttons on the Search Result.
I want to hide the Copy button if the condition "PAT" is present in the "In Scope" field. I'm able to hide the "Delete" button with the following code which is contained in an HTML block:-
<script>
var condition = ("[@field:In_Scope]" == "PAT");
hideDelete([@cbRecordIndex], condition);
</script>
But when I change the "hideDelete" in the above code to "hideCopy" it doesn't work and the "Copy" button is still visible. Here's a screenshot of the output.
Any advice to correct would be really welcomed.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.