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

Valid data failed to be recognised when validating with @resource-less submission #87

Open
backplane-import opened this issue Oct 16, 2011 · 2 comments

Comments

@backplane-import
Copy link

Imported from backplanejs Google Code issue 87.

Reporter [email protected]
Date 28 Jul 2010 12:21:16 PM UTC

What steps will reproduce the problem?

Scenario 1 (setting instance data via xf:input)

  1. Open the attached form
  2. In the Applicant 2 -> National insurance number input type: ab121212c
  3. FocusOut of the field, noting the field is now styled as valid (no red background)
  4. Click the 'Validate' trigger. Note the validation message says that the data is invalid

What is the expected output? What do you see instead?

I expect that after entering the valid national insurance number and clicking the 'Validate' trigger, to see the 'Validation:' message change to 'Form data is valid' as, although the submission will fail, it will fail because of a 'resource-error' rather than a 'validation-error'.

Please use labels and text to provide additional information.

This is strange because, if you:

Scenario 2 (setting instance data via xf:select1)

  1. Open the attached form
  2. Change 'Do you have a national insurance number?' select1 to 'No'. Note that the now relevant 'Why not?' field is invalid.
  3. Select a value for 'Why not?', making it valid (no red background)
  4. Click the 'Validate' trigger. Note the validation message says that the data is valid

Both scenarios do basically the same thing, set some instance data but when the data is set with xf:input, it's not recognised as valid.


Ticket status set to Accepted

Priority: Medium
Type: Defect


Attachments

nino.html (16.8 KB)

@backplane-import
Copy link
Author

Comment by markbirbeck on 28 Jul 2010 8:54:19 PM UTC

I'm assigning this to Frankie because the issue seems to have arisen after the latest changes were incorporated.


Updates

Owner set to fdintino

@backplane-import
Copy link
Author

Comment by markbirbeck on 6 Aug 2010 2:59:36 PM UTC

This issue was updated by revision 48c2910 (originally 7834ee2f7e).

Although there is obviously an issue here, it seems that it is not to do with the 'xforms-submit-error' handling code, as these tests show.

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

No branches or pull requests

1 participant