cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Vishnureji
Level: Powered On

how to prevent inserting same value to the table, Input Box validation

I was trying to create a registration from, I have to prevent insertion of same value to the table. Table name is user_registration,  field name is phone_number and my inputbox name is txtphone

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: how to prevent inserting same value to the table, Input Box validation

Before submitting check if the value already exists.

 

Use Lookup for that.

 

Basically it would be something like this:

If(
    IsBlank(LookUp(YourDataSource*,phone_number=txtphone.Text)),
    SubmitForm(YourForm*)
)

* Change bold name into actual names in your app

2 REPLIES 2
Anonymous
Not applicable

Re: how to prevent inserting same value to the table, Input Box validation

Before submitting check if the value already exists.

 

Use Lookup for that.

 

Basically it would be something like this:

If(
    IsBlank(LookUp(YourDataSource*,phone_number=txtphone.Text)),
    SubmitForm(YourForm*)
)

* Change bold name into actual names in your app

Vishnureji
Level: Powered On

Re: how to prevent inserting same value to the table, Input Box validation

Thanks @Anonymous Its working