cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dyee4613
Level 8

Two Quick Questions: Dynamic Labels and Duplicate Prevention

Hi.  Here is what I'm trying to do.  

 

Dynamic Labels:

InputBox = 27

Label3 = COUNTA(Table1.Name)= 17

Label4 = "There are" Label3.value "Out of " Textinput3.text


I have the inputbox and label3 built.  How do I add their values to label 4?  

 

Duplicate Prevention

 

I'm making a signup sheet and I want to make sure the same user ID doesn't get entered multiple times by accident.  I was thinking using a lookup and if it finds anything then the submit button disables.  Is there a better way to do this?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Two Quick Questions: Dynamic Labels and Duplicate Prevention

Try this:

 

InputBox = 27   (Presumable that this is what the user types and that you named this Textinput3)

Label3.Text = COUNTA(Table1.Name (assuming you were stating the result from CountA was = 17)

Label4.Text = "There are " & Label3.Text & " Out of " & Textinput3.text

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

5 REPLIES 5
Super User
Super User

Re: Two Quick Questions: Dynamic Labels and Duplicate Prevention

Try this:

 

InputBox = 27   (Presumable that this is what the user types and that you named this Textinput3)

Label3.Text = COUNTA(Table1.Name (assuming you were stating the result from CountA was = 17)

Label4.Text = "There are " & Label3.Text & " Out of " & Textinput3.text

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

Super User
Super User

Re: Two Quick Questions: Dynamic Labels and Duplicate Prevention

You can try preventing duplicated user IDs in the datasource - if you are using SharePoint, go into the settings for that Column and set 'Enforce unique values' to true.

If using SQL you can set a Unique Constraint on the column.

dyee4613
Level 8

Re: Two Quick Questions: Dynamic Labels and Duplicate Prevention

Oh duh, I forgot the &'s.  Thank you!

dyee4613
Level 8

Re: Two Quick Questions: Dynamic Labels and Duplicate Prevention

As of right now, it's just an excel sheet.

Super User
Super User

Re: Two Quick Questions: Dynamic Labels and Duplicate Prevention

Sorry I didn't even see the second part of your original post.

 

So, on your thinking, yes - that is pretty much a good way to do it.

I was thinking something like this on the DisplayMode property:

   If(Lookup(YourTable, YourUserIDColumn=WhatEverControlHasTheNewIDinIt.Text, true), DisplayMode.Edit, DisplayMode.Disabled)

 

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,639)