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

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 211 members 4,401 guests
Please welcome our newest community members: