How to handle a button when a user can't yet take action #4337
-
Hello team 👋🏽 , I am building the UI page attached below. Our usecase is that the customer can only cancel an active plan. For other status values, the customer can't take action via the button. What is your best UX recommendation for the button in this scenario? (Eg: should it not be displayed? should it be disabled, etc.?) Also, we would like to display a helpful message on when that button would be enabled. Where do you suggest we put that text on the page? (eg: as a help text under the status? show an enabled button but it renders an error message when clicked like it says in the docs?) Thanks for both your recommendations! ![]() |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary. Hello! Based on the guidance from the Paste documentation, here are the recommendations for your scenario:
Remember, the key is to provide clear, immediate feedback to users about why an action is not available and guide them on how to proceed. This approach enhances the overall user experience and accessibility of your application. For more detailed guidance and components usage, you can refer to the Paste documentation:
I also did a search, and I managed to find these other Discussions that might be similar or related to your question. Give them a read to see if they answer your question. If they do, head back here and update this discussion and mark it as answered, pointing others to the related discussion:
|
Beta Was this translation helpful? Give feedback.
-
For your scenario, the Paste design system recommends that if a button is not actionable (for example, "Cancel Plan" when the plan is not active), it should be immediately clear to the user why the button is disabled. If the reason isn't obvious, it's better to show the button in its default (enabled) state and provide a helpful error message after it's pressed, rather than disabling it without explanation. However, if you do disable the button, you should clearly explain what needs to happen for it to become enabled, ideally right next to or below the button itself. This approach helps with accessibility and user understanding [source]. A common and effective pattern is to display the disabled button with a help text directly beneath it, explaining when or how it will become enabled (for example: "You can only cancel an active plan. This action will be available when your plan is active.") [source]. This keeps the context clear and ensures users know what to expect. Avoid hiding the button entirely, as this can confuse users about whether the action is possible at all. If you choose to keep the button enabled and show an error on click, make sure the error message is clear and appears close to the button. In summary: show the button in a disabled state with a clear, concise help text directly below it explaining when it will be enabled. This aligns with Paste's accessibility and UX guidelines. To reply, just mention my name @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
@waijeeho Do you have any thoughts here since you might understand the customer scenario better? |
Beta Was this translation helpful? Give feedback.
@waijeeho Do you have any thoughts here since you might understand the customer scenario better?