Amon wrote:
Best users,

I want to customize the styling when a validation of a field return false (Cocoon forms). Now i can only see and "!" sign next the the input field and when i click on it it show an alert box. I don't want that. I want to change the color of my field and put a 'help'' div next to my field. How can i accomplice this? 

I am using cocoon 2.1.10. 

Thanks in advance,

Amon


Get the new Windows Live Messenger! Try it!
An easier solution might be to use the cocoon <fi:help> tag in the form template file. The tag will place an img with a ? next to your field.  You can then customize the message however you want and when the user clicks on the ? they see your help message. Here is an example:

    <fi:group>
                <fi:styling type="fieldset" layout="rows"/>
                <fi:items>
                    <ft:widget id="query"/>
                        <fi:help>
                            <p>Type one or more descriptive words for the desired information.</p>
                            <p>Make sure there is a space between each keyword.</p>
                        </fi:help>
                </fi:items>
            </fi:group>

If you want to change the ! point then have a look at the forms-field-styling.xsl file in cocoon. This is where many of the default cocoon form styles are done.

Regards,
Greg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to