Create a rule for a field

  • 14 December 2016
  • 3 replies
  • 0 views

Badge +7

Field Name: NS

I need create a rule that verifies if the field serial number is not empty

Who do that

I have do this but do not work

I try do another thing but is the some result


3 replies

Userlevel 5
Badge +12

Hello,

Make sure to select Ns from the named controls section on the rules panel if you want to check the control on the form in more real time.    If you use item property it will check the list value in that column instead (most new items will be empty).

Your rule should fire when you click the save button.  

Thanks

Badge +7

i used not function and now works.
but i have another problem.
My form have a field "type".
I need to do

if Type=='Telefhone'

{

 not(numberid)

{

else

{

 not(numbid) || lenght(numbid)<=6 || substring(numid,1,3)

}

Is it right?

What is the best way to do this?

Badge +11

This is not right as you have 3 "{" but only 1 "}"

Besides this syntax error, I do not really understand what you are trying to accomplish here. Can you maybe explain what you are trying to do here?

Regarding your "ns" field. It looks like it is connected to a column of your list? If so, you can simply set this field as mandatory inside your list settings. No need to build a rule then.

Reply