10 years ago
Topic
Hello,
Can't find a way to put a legend in my fields labels like (instruction,, explaination...) with its own class or id to style it!
Maybe I didn't search well so if someone could send me on the good way I will apreciate.
Thanks
By
Get a VIP membership
693 Posts
rpoy
10 years ago
7
Level 1
Hi JJL,

Are you referring to tooltips?

thanks,

Randy
JJL
10 years ago
6
Level 2
Hello Randy,
Sorry for answering so late.
I didn't know about tooltips maybe I'll need that one day soon.
But my demand was more simple, it was how to put the little explain between "()" that exist in the admin of seblod it's next to the label but more little and grey, if you know what I mean ?
Thanks By
693 Posts
rpoy
10 years ago
5
Level 3
Hi JJL,

Have a look at the Free Text field. In your case, you do not need a label, so you can add the word "clear" without the quotes in the label.

Hope that helps.

Randy
JJL
10 years ago
4
Level 4
Hi Randy,
I don't understand what you write, that's because, I think, I wasn't very clear so what I want to put a legend to a label.
Like:

Name (enter your name here please) i::::::::::::i

I want the  (enter your name here please) to be little and of another color 

Maybe that's more clear
thanks for responding so fast every time

693 Posts
rpoy
10 years ago
3
Level 5
Hi JJL,

There are 2 ways you can do this...

1. Free Text Field. This is a field that adds HTML text to your form. So its good for extra directions, headers, or some other extra text that you want to show on the form. The problem is that it will create a label, which in your case you probably don't want. In your example it would look like this:

Name:
My Name Label: Enter your name: - Where this field is the Free Text Field.

So you would have to remove the label using "clear" as I stated earlier. You will need to style this field so that it uses the colors that you want. This can be done by adding the styling class on the Markup Class (#6 option) on the field.


2. Place holder - this is probably the easiest method...
In your Field, below the Storage click on the orange chevron and look for the Custom Attributes field. Add the following:
placeholder="Enter Your First Name"

This value will appear in the input box with a lighter color and disappear once you start to add a value.

Hope that helps,

Randy
JJL
10 years ago
2
Level 6
Yes that help Randy,
i understand those methods and think I could do it.
I will use placeholder because I started displaying description of the field, what I thought a good option, but it appears differently depending on the position on seb_one so it is not very esthetic maybe that could justify a new topic.
Thanks anyway for your clear explaination.
143 Posts
pretobrazza
10 years ago
1
Level 7
Hello,

Sometimes I customize my labels by simply putting HTML markup in the label field (#1) like
<b><i>First name</i></b>
First name

In this case it would be something like:
name<br><small>(enter your name here please)</small>
  name
(enter your name here please)

kind regards,
Bernard
JJL
10 years ago
0
Level 8
And that's great too, Bernard
Many thanks 
Get a VIP membership