Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[examples/custom-validation] Set fields to invalid incorrect behaviour #3992

Open
stefankeil opened this issue Jul 5, 2023 · 4 comments
Open

Comments

@stefankeil
Copy link

Describe the bug
The example suggests to set entry fields to valid or invalid by settingsdk.entry.fields[...].getForLocale(...).setInvalid(true). According to the sdk docs, this actually just works on the field location.

To Reproduce
Steps to reproduce the behavior:

  1. use sdk.entry.fields['slug'].getForLocale(sdk.locales.default).setInvalid(true)
    sdk.entry.fields['slug'].getForLocale(sdk.locales.default).setInvalid(true);

Expected behavior
Form Field should get invalid indicator (red bar…)
In the example the slug field should get a red bar

Screenshots
Screenshot 2023-07-05 at 11 47 02

Desktop (please complete the following information):

  • OS: Mac OS 13.4.1
  • Browser chrome 114.0.5735.198
@whitelisab
Copy link
Contributor

Hi @stefankeil! Thank you for notifying us of this issue. I have logged a ticket with our Developer Experience Team and they will look into it further.

@ghepting
Copy link
Contributor

@stefankeil FYI we're still working on figuring out how to fix this. There's a 3+ year old comment that indicates this has never worked FWIW, but I'm determined to figure out a way 😎

@stefankeil
Copy link
Author

Hi @ghepting , thanks for the update and for looking into it :)

@prasannabp33
Copy link

prasannabp33 commented Aug 26, 2024

Hi @ghepting , Any fix on the issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants