My question is I need to create a imput validation for a field that looks at another field. I will do my best to describe what I am trying to do.
I have a customer field in my form and I want to add a IP address field but I dont want the IP field required unless there is a name in the customer field.
So if they create a ticket and its for a customer and they add the customer name then make the IP field required. But if they create a ticket for internal use and dont select a customer then dont make the IP field required.
I hope this makes sence and such. Thanks in advance for the help.
Subject: Create a formula question
You need to put your code in the Input Validation event of the field.
@if(YourConditionsAreTrue; @success; @failure(“You need to add an IP address”);
Subject: RE: Create a formula question
ok I understand most of that but I am still learning the formula’s the part where you state @if(yourcondictionsare true; How would I pick this would it be the field name? sorry for being such a newb I am admin that just starting to lean this side of notes
Subject: RE: Create a formula question
ipaddress = “” & customer = “”;
The above computes to True if both the ipaddress field and the customer field contain nothing.
To put this into a local variable you’d say:
needIP:=ipaddress = “” & customer = “”;
@if(needIP; @failure(“Need an IP address”); @success);
Subject: RE: Create a formula question
In Input Validation you could put:
@if(customernamefield != “”; @failure; @success)
Subject: RE: Create a formula question
Robert, in the Input Validation of the IP_Address_Field put this:
@if(Customer_Field!=“” & IP_Address_Field=“” ; @Failure(“You must enter an IP Address”) ; @Success);
ST
Subject: RE: Create a formula question
Thank you everyone I figured it out with all your help… Thank you again