No suggestions or insight into this?  Anyone?

On Saturday, February 28, 2015 at 5:07:03 AM UTC-8, lillian wrote:
>
> Hello,
>
> I have a SQLFORM.factory-created form with several fields but one in 
> particular that can only be filled out ONCE.  If the form is edited that 
> particular field is disabled.  All that logic works fine.  However, when 
> the edited form is submitted the disabled field fails validation even 
> though it contained the original valid value.  After the failed submit it 
> is empty.
>
> I expect I could work around this - replace the input with a label instead 
> of disabling it for example - but I'd rather know why disabled fields fail 
> validation.  Are their contents inaccessible?  Making the field readonly 
> solves the validation problem but raises others (the field still responds 
> to clicks and other user input for example).
>
> Thoughts?
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to