Hi,

I am having issues with an SQLFORM with list:string and having
requires=IS_IN_SET on the field.

By default this works when using the select drop down I am able to
overwrite the validation (by detecting a particular post key e.g.
draft) and use IS_EMPTY_OR on the
form.element(_name=myname).update(requires=) before processing the
form 'form.process(onvalidation=method).accepted:'. However when using
the radio widget, this breaks and forces the IS_IN_SET validation
giving me the "value not allowed" error, meaning I cannot get the
onvalidation to run as well as not being able to overwrite the
validation request.

I am thinking the issue stems from the fact that with the select drop
down we actually post that field just with no value, whilst no radio
checked the field isn't posted. I tried using
request.post_vars.myfield = None, which didn't work.

Is what I am trying to do possible ? If so how can I go about doing
it.

Thanks.

Reply via email to