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

Field Interaction markAsInvalid not running when form is initialized. #1031

Open
soucerer opened this issue Aug 23, 2019 · 3 comments
Open
Labels

Comments

@soucerer
Copy link

Describe the bug
When the form is initialized, the markAsInvalid method of the FieldInteractionAPI does not mark the field as invalid. The field interaction script was added to a field in Bullhorn via the field mappings with the "Run on init" option selected.

Expected behavior
When the form is initialized in Bullhorn, the field should be marked as invalid.

Actual behavior
When the form is initialized in Bullhorn, the field is still marked as valid until the user clicks the field and moves away, triggering the blur event.

Specifications

  • Platform: Windows
  • Browsers: Chrome 76, Firefox 68

Screenshots

Basic sample script:
ValidationOnInitFieldInteraction

Additional context
Encountered the same behavior when using the "On Init" and "On Change" event option.

@blitzmann
Copy link
Contributor

We also ran into this issue a while back, very annoying

@blitzmann
Copy link
Contributor

Is there any response from Bullhorn about this?

@g-testo
Copy link

g-testo commented May 1, 2023

This is still an issue today. I believe it's a race condition because I wrapped the "markAsInvalid" in a 300 ms setTimout and it now disables the form on init. You could also look into lowering sortOrder too

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

No branches or pull requests

4 participants