After clicking first button another button should be visible on form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 02:30 AM
Hi All,
1. There is a button named 'Initiate Approval' button, after clicking to that button another 2 buttons should be visible on the form.
2. But after clicking on the 'Initiate Approval' button further process is a popup window is opened like this:
3. After filling all the details in above screenshot after clicking on 'initiate' button on popup window, approvers are added in below related list of approvers.
4. So, After clicking on the 'initiate' button and addition of approvals in related list, the 2 additional buttons should be visible. Prior to that the buttons should not be visible.
Any help would be deeply appreciated!
This above comes under legal request table, under Legal Service Delivery module
Thank You,
Sujay

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 02:45 AM
Hi,
For this requirement you can look for the UI page called in UI Action to open this Pop-up.
On That Ui Page check 'HTML' script and there you can use something like below to manage visibility of your Buttons.
<div id="send_notes_section" style="display: none">
<j:if test="${jvar_document_task.attachment != null}">
<button class="btn btn-primary" id="sendNotes" style="margin: 5px" onclick="sendNotes()" aria-label="${gs.getMessage('Send Notes')}">
${gs.getMessage('Send Notes')}
</button>
</j:if>
</div>
<div id="send_approve_notes">
<j:if test="${jvar_document_task.attachment != null}">
<button class="btn btn-primary" id="approve" style="margin: 5px;" onclick="approve()"
aria-label="${gs.getMessage('Approve All Notes')}" data-toggle="tooltip" title="${gs.getMessage('Approve All Notes')}">
${gs.getMessage('Approve')}
</button>
</j:if>
You can use something like below to check conditions:
<j:if test="${jvar_document_task.attachment != null}">
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 02:56 AM
Hi @Anil Lande
1.Following is the UI Action page.
2. Script & conditions under the same UI Action:
3. As I'm not able to see any HTML page attached here.
Thank You,
Sujay

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2024 03:48 AM
Hi,
You can find the name of Page on Line no 3. i.e sn_lg_ops_create_adhoc_approval
You can search for this page in UI Pages table from left navigation.
Search for this page in Name or Endpoint column like below.
Thanks
Anil Lande