[SOLVED]Help with custom script 😅

[SOLVED]Help with custom script 😅

Hello,

Nice to meet you all.

I am trying to change automatically a field depending of the first letter of another field.

I tried this but it is not working:

var x=$CS.getText("GUDF_CHAR10");
if (x(1)=S); $CS.setValue("GUDF_CHAR18","S - FW19 - 55");
if (x(1)=T); $CS.setValue("GUDF_CHAR18","T - SS20 - 56");
if (x(1)=U); $CS.setValue("GUDF_CHAR18","U - SS20 - 56");

Just to explain you: if the first letter of GUDF_CHAR10=S then set GUDF_CHAR18 to "S - FW19 - 55" )

I hope I am enough clear.

Thank you

Kind regards,

Javid
                New to ADManager Plus?

                  New to ADSelfService Plus?