
Hello,
hoping there are some wiser minds than mine that can help. Im putting together a football league sign up portal and what i want is for the team manager to add a cancel reason for the teams to drop out of the league.
So ive got a team page which is read only, i want to give them a button that im going to place on that read only form that opens an edit form of the same where the only field is the drop out reason.
Can anyone advise if this is possible and the steps?
MrM
Hi,
Indeed, updating the form is possible. You can achieve this by creating a separate form or adding a tab to the existing form that includes only the drop-out reason field or any other fields you wish to edit.
For list component, you can directly add editing form.
As an example, I've added both a read-only and an editable form, focusing only on the account number within the Account list.
Below is screen-clip for reference:
For Form Component, you need to add both forms in page and show/hide them based on your button:
Below is the code for reference:
$(document).ready(function() {
$('#readOnlyForm').show();
$('#editForm').hide();
$('#openEditFormButton').click(function() {
$('#readOnlyForm').hide();
$('#editForm').show();
});
});
Let me know if I am missing anything.
Hope this helps.
Thanks!