Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

0 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