Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Customise Required Field visualization

    I have some fields that are required.
    To do this I have set the value true for the required attribute.
    Below you can see an example from my code:

    public static DataSourceTextField surname;
    ...
    surname= new DataSourceTextField("Surname", "Surmame");
    surname.setLength(50);
    surname.setRequired(true);

    When my Panel is showed, the field's label for surname is Bold.
    I wold like to change also the font colour for all the required attribute.
    How can I do this? Can I modify the skin_styles.css? Which entry?

    Thanks in advance

    #2
    Wake up guys!
    Did nobody need this type of customisation????

    Comment


      #3
      Change the form requiredTitlePrefix and requiredTitleSuffix to be wrapper HTML that specifies your font information for required field titles. The defaults are "<B>" and "&nbsp;:</B>".

      Comment


        #4
        It works!
        Thank you very much!

        Comment

        Working...
        X