Display of form elements looks different in browser

Hello,
I added styles to my form elements and everything looks nice, except when i check it in the browser it looks different, it’s like it is only taking in consideration the default style for an element (for example the button style instead of button.menu style - which is selected for a certain button element). Do you have any idea why and how to make it look as in Servoy application?
Thank you!
DB

It works fine for me, can you post a screenshot showing the same solution in smart client and in web client?

Hi Nicola,
It seems that the problem disappeared when i restarted the application server…
Since i am here, may i ask you if there is a possibility to change the appearance of a checkbox? I can change the surrounding border of the checkbox but i can’t seem to be able to change the checkbox look… Is there a way to do this? (The same thing applies to radio buttons…)
And one more thing: if i am using a table view for the form, i am able to change the appearance of the fields (rows) with editing the field style but i can’t change look of the header of the columns… It’s always blue in the browser…Is there a way i can change that?
Many thanks in advance!

Diana

I’m not sure about checkboxes and radios but the table view header is not customizable, the only thing you can do is add an header part to the form, in that case the columns headers won’t be drawn anymore and you can create your own ones.

I’m hope you didn’t read my previous post yet because… I was plainly wrong! :)
I forgot about the “labelfor property”, this has been introduced recently: just create a label for every field in your form and link labels to fields using the labelfor property, those labels will then be used to build the column headers in table view. It works both in web and smart client.

Thanks Nicola!
This is very interesting…could you please give me an example of how to write code for linking the label to a field?

DB

Just select the label and look for the property called “labelfor” in the properties editor on the right or search the documentation for “labelfor property”.

Many many thanks Nicola!
Diana