sidewinderlabs/backplanejs — Issue #87: Valid data failed to be recognised when validating with @resource-less submission
Author: backplane-import
Created: 2011-10-16 04:23:56+00:00
State: open

### Imported from backplanejs Google Code [issue 87](http://code.google.com/p/backplanejs/issues/detail?id=87).

Reporter
alex.sansom@webbackplane.com

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.