Jump to content
  • 0

Disable submit button in details Page?



I need to demo reports as input for users but need to disable the ability to submit (even when disabling on field level the SUBMIT button still shows and that will change the User_ID of the record. I have changed the record level security to a generic code that will display the records I determine.

Any other known bets practices for providing demo reports?

Any help appreciated!


Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

It seems I was too quick, it does not appear as if the UPDATE button results in a change of User_ID (if it is not configured to pass the user ID). Also I misstated the title of the button, should be 'UPDATE', not 'SUBMIT'.

The question remains: How to remove the UPDATE button and what are best practices for exhibiting parts of the database as demo without the ability to make changes?

Many thanks!

Link to comment
Share on other sites

  • 0
On 2/23/2022 at 2:04 AM, NiceDuck said:

The update button would only appear if you have an editable field on your form. Otherwise, it will only show the 'back' button.

Agreed, in this case I want to allow the users to alter data to see what happens but without ability to submit the changes, for demo purposes. The script provided by @TellMeWhy works well for me (see below)




document.getElementsByClassName('cbUpdateButton')[0].disabled = true;
document.getElementsByClassName('cbUpdateButton')[0].style.display = 'none'; 

Link to comment
Share on other sites

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.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...