Announcement

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

    Changing The style of the Mandatory field

    Hi all
    i am new to GWT and smart GWT as well and i got struck up with a problem following is the description.
    i have created a text field and have set name and title for that. and i have set that as required(mandatory) because of that the apperance of the field is becoming bold and i need that to be normal and i have tried many ways but i was unable to crack that so can someone help me.

    Thanks In Advance

    Thanks & Regards
    D.Kranthi Kumar.

    #2
    See DynamicForm.requiredTitlePrefix/Suffix.

    Comment


      #3
      Thanks for replying david but i was unable to understand what u are saying. can u please tell that once again i have wrote the following
      TextItem test = new TextItem();
      infName.setTitle("test");
      infName.setRequired(true);

      this is what i wrote. and the "test" is comming in bold letters and i need it in normal way

      Comment


        #4
        On your form, add:
        Code:
        form.setRequiredTitlePrefix("");
        form.setRequiredTitleSuffix(" :");
        Otherwise your title is wrapped with <B> and </B> by default.

        Comment

        Working...
        X