After clicking first button another button should be visible on form

Sujay Sankpal
Tera Contributor

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:

SujaySankpal_0-1705314478228.png

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

3 REPLIES 3

Anil Lande
Kilo Patron

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}">

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Hi @Anil Lande 

1.Following is the UI Action page.

SujaySankpal_1-1705316101271.png

 

2. Script & conditions under the same UI Action:

SujaySankpal_2-1705316153617.png

3. As I'm not able to see any HTML page attached here.

 

Thank You,

Sujay

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.

Screenshot 2024-01-15 at 5.17.41 PM.png

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande