Hide button after one click
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2011 09:05 AM
I have a button on a form, that when clicked, a GlideDialogWindow pops up and a user can enter comments and submit. The button should only be clicked once, how can I make this happen?
- Is there a way to hide it after it's clicked one time?
- If not, is there an error message I can put on the button alerting the user that they can't click it again?
Thanks.
- Labels:
-
Service Mapping

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-19-2011 09:19 AM
This article shows you how you can hide buttons with client scripts. You should be able to modify your 'onClick' function in your UI action to hide itself.
http://www.servicenowguru.com/scripting/client-scripts-scripting/removing-form-buttons/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2011 10:45 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2011 11:30 AM
Put it in your showContactForm function in your UI action script.