Why not do

Field('myfield',...., comment=SPAN('*',_class='mandatory'))

then use jQuery to manipulate the raws that contain the 
jQuery('span.mandatory').

On Saturday, 23 February 2013 00:58:42 UTC-6, waqasiqb...@gmail.com wrote:
>
> i want to add asterik in front of all mandotry Why fields , but problem is 
> that form is built in CRUD ,so how can i add asterik 
> i made module off asterik addition but it's not printing in its accurate 
> location .
> Example:
> UserName: *[--------------------------]
> i want this asterik at this position and in red color
> UserName: [--------------------------]**
> MY Code:*
> class UiUtils:
>     @staticmethod
>     def AddAsterik(form, elementId):
>        
>         
>         asterik = SPAN('*WAQAS')
>         form[0].insert(-0.5, asterik)
>        # form[0].element(elementId).insert(-1, asterik)
>        
>         
>                
>

-- 

--- 
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