Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Textfield turns black when changed

Avatar

Level 9

Using Action Builder, I created a script to make a subform presence visible when a particular textfield is changed. When typing into that textfield, the background color immediately turns black with the first charcter I type into that field. Why? I tried a different textfield and it does the same thing.

1 Accepted Solution

Avatar

Correct answer by
Level 5

Why you use the action builder?

What would you like to create?

You cold use the following - the subform is visible if the textfield is empty - not empty the subform is hidden:

if(PathToTextfield.NameTextobject.rawValue == null)

{

    PathToSubform.NameSubform.presence = "visible";

}else

{

PathToSubform.NameSubform.presence = "hidden";

}

You could copy this script in the EXIT-event of your textfield.

You will find the scripteditor about "windows" | "scripteditor"

Then you select the event (Anzeigen = event (this is a german LCD screenshot))

subform.jpg

Hope it will helps you,

Mandy

View solution in original post

3 Replies

Avatar

Correct answer by
Level 5

Why you use the action builder?

What would you like to create?

You cold use the following - the subform is visible if the textfield is empty - not empty the subform is hidden:

if(PathToTextfield.NameTextobject.rawValue == null)

{

    PathToSubform.NameSubform.presence = "visible";

}else

{

PathToSubform.NameSubform.presence = "hidden";

}

You could copy this script in the EXIT-event of your textfield.

You will find the scripteditor about "windows" | "scripteditor"

Then you select the event (Anzeigen = event (this is a german LCD screenshot))

subform.jpg

Hope it will helps you,

Mandy

Avatar

Level 9

Thank you. That works great!

-Don