Blank out text field if specific variable/value is present.
Hello,
I 'm currently driving a text field to populate a part number using a simple caculation script;
event.value =
getField("ST1").value.split("--")[0]
+ getField("F1").value.split("--")[0]
+ getField("PA1").value.split("--")[0];
But I'd like to modify it for the value to blank out the text field if the value.split("--")[3] = X
Basically having the export value of specific drop down selections to blank out the part number field.
The current export values of the dropdowns are driving the part number, and an array caculation for price.
My current idea is;
var f = (Number(getField("F1").value.split("--")[3]))
if (f==x) event.value = " ";
else event.value =
getField("ST1").value.split("--")[0]
+ getField("F1").value.split("--")[0]
+ getField("PA1").value.split("--")[0];
But that doesn't work. I'd appriciate it if someone can point me in the right direction.
