Modifying style of Marking a field in a form as required

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Modifying style of Marking a field in a form as required

rrhati2010
Hi,

I tried to mark a field as required in a form by
<field name="comments" required-field="true"><text size="40" maxlength="60"/></field>

Doing this it gives a asterick after the the text field.

But I need to put the asterick before the text field.

How can I do that? Please help....
RRH
Reply | Threaded
Open this post in threaded view
|

Re: Modifying style of Marking a field in a form as required

BJ Freeman

from widget-form.xsd


                 <xs:documentation>The name of a style (like a CSS
class) to apply to the title of this field if required.
                     Will default to form's default-required-field-style.
                     If field is required, but required-field-style is
empty, an '*' will be placed to the right of text,
                     textarea and password fields.
                 </xs:documentation>

you can see this used in forms that show  "required" instead of *.
not sure if you can get the position to change though.
maybe add a "column placement" in the xsd.
and change widget rendering code.


=========================
BJ Freeman  <http://bjfreeman.elance.com>
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


rrhati2010 sent the following on 7/7/2010 6:43 AM:

>
> Hi,
>
> I tried to mark a field as required in a form by
> <field name="comments" required-field="true"><text size="40"
> maxlength="60"/></field>
>
> Doing this it gives a asterick after the the text field.
>
> But I need to put the asterick before the text field.
>
> How can I do that? Please help....
>
> -----
> RRH