Skip to main content
Known Participant
July 29, 2023
Question

Feld eine Bestimmte Farbe nach eingabe eines Textes

  • July 29, 2023
  • 2 replies
  • 7702 views

Hallo Ich bin auf der Suche nach einem Skript für eine Wenn dann Funktion also wenn mein name in einem feld steht soll dieses Feld die Farbe Rot bekommen und soweiter.

 

Danke im vorfeld 

Gruß Marcel

This topic has been closed for replies.

2 replies

Participant
July 29, 2023

Es freut mich, dass du an einer Wenn-Dann-Funktion interessiert bist, um die Farbe eines Feldes basierend auf deinem Namen zu ändern betflix. Um dir zu helfen, benötige ich mehr Informationen darüber, in welchem Kontext und Programm du diese Funktion anwenden möchtest.

try67
Community Expert
Community Expert
July 29, 2023

Your specific name, or any value?

Known Participant
July 29, 2023

Name 

try67
Community Expert
Community Expert
July 29, 2023

OK, then as the field's custom Validation script you can enter something like this:

 

event.target.fillColor = (event.value=="Marcel") ? color.red : color.transparent;