Conditional Display of Helper Text for AI Provider Account Creation #715
Labels
help wanted
Extra attention is needed
type:bug
Something isn't working.
type:good-first-issue
Good for newcomers.
Milestone
Describe the bug
Description:
The helper text, such as 'Don't have an IBM Cloud account yet? Register for one and set up a Natural Language Understanding Resource to get your API key.', should be displayed conditionally. It should only appear when the credentials fields are empty or contain incorrect credentials.
Use Case:
When the service is successfully configured, it implies that the admin already has an account, allowing them to set up the service correctly. Therefore, if the admin has already configured an account, this helper text is not useful on the screen.
Steps to Reproduce
Steps:
Branch-
develop
Screenshots, screen recording, code snippet
When fields are empty - this text will help the user to create an account and setup a plugin.
When Setting is configured successfully, this can be hidden:
Example -
Environment information
No response
WordPress information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: