215 Posts
cubist
9 years ago
5
Topic

Hello fellow Seblodites

Trying to set some fields per the following conditions

Field A is a text field and its default text = "abc123doreme".

When a user clicks on Field A, the default text disappears.

Seems is easy enough. I set a conditional where:

This field ... is Empty

WHEN triggers

Field A is Equal "abc123doreme".

Field A is Pressed

But alas, no effect ... Hmm.... any ideas

Thx in advance

Get a Book for SEBLOD
693 Posts
rpoy
9 years ago
4
Level 1

Hi cubist,

It appears that you have too many things going on with FieldA. You need another FieldB that Triggers the Events on FieldA.

Maybe you can explain a little more what you are tying to accomplish...

Thanks,

Randy

215 Posts
cubist
9 years ago
3
Level 2

This is very common in search bars, e.g. see this cedar saunas site. "Search Products" disappears on Focus

693 Posts
rpoy
9 years ago
2
Level 3

Hi Cubist,

Ah!  OK, Have you tired a placeholder?

In that field, in the Storage section, click on the orange chevron and go to the Stuff section.  In the Custom Attributes:

placeholder="my text that I want to show"

will that work?

Randy

215 Posts
cubist
9 years ago
1
Level 4

Exactly ... learn more and more about Seblod all the time, thx to contributions like yours. Much appreciated!

Speaking of Custom Attributes ... is there a list of these somewhere?

693 Posts
rpoy
9 years ago
0
Level 5

Hi cubist,

The list is basically any html attribute that extends a standard SEBLOD field.  In some cases you might follow the formatting described by schema.org.  So it really depends on what you are tying to accomplish and how you want to extend it.

regards,

Randy

Get a VIP membership