you'll do it the same way as a field in an external table. 
If you have prepared your own custom validator, pass that in the requires= 
argument
If instead you have no notion on how to force a particular validator that 
is not provided by web2py, read 
http://web2py.com/books/default/chapter/29/07#Custom-validators

On Friday, February 22, 2013 4:49:27 PM UTC+1, frasse wrote:
>
> I think it works if the requires is exist like  writable = , readable= .. 
> but I want to validate the format of the text in the field. which requires 
> should I use than ?
> can I do writable=False, readable=False, myformat = validFormat() ?
>
> /F
>
> 2013/2/22 Niphlod <nip...@gmail.com <javascript:>>
>
>> using requires directly in those appended fields doesn't work ?
>>
>>
>> On Friday, February 22, 2013 3:41:04 PM UTC+1, frasse wrote:
>>>
>>> Hi 
>>> I have done some custom login form like this in db.py file.
>>>
>>> auth = Auth(db, hmac_key=Auth.get_or_create_**key())
>>> crud, service, plugins = Crud(db), Service(), PluginManager()
>>> auth.settings.extra_fields['**auth_user']= [
>>>   Field('WithdrawalAddress', label = 'Withdrawal Address'),
>>>   Field('Address', label = 'Deposit Address'),
>>>   Field('Nickname', label = 'Nickname')
>>>   ]
>>>
>>>
>>>
>>> How can I add a custom validation function to extra_fields ?
>>>
>>> thanks
>>> /F
>>>
>>  -- 
>>  
>> --- 
>> 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+un...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 

--- 
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/groups/opt_out.


Reply via email to