cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Make a field required if a value < 100

Hi all,

this should be an easy one, but not for me 🙂

 

I want to make a  person field required, if a number field is >100.

I found this one:

If(DataCardValue3.Text = "",true,false)

But this, probably because of the .Text ending just work, if it´s equal to 100.

I cant write it like:   "If(DataCardValue3.Value > 100,true,false)"  even DataCardValue3 is a number field.

Data source is a SP list.

 

Any ideas?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Make a field required if a value < 100

Try:

If(Value(DataCardValue3.Text) > 100,true,false)

 

If you get error, give a screen shot

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Make a field required if a value < 100

Try:

If(Value(DataCardValue3.Text) > 100,true,false)

 

If you get error, give a screen shot

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Highlighted
Super User
Super User

Re: Make a field required if a value < 100

Hi @YoYo1982 ,

 

On Submit button DispalyMode write the below formula:

If(DataCardValue3.Value > 100 And IsBlank(personfiledControl),DisplayMode.disabled;UpdateContext({varErrorMsg:"Person field is Required"}),DisplayMode.Edit;UpdateContext({varErrorMsg:" "}));

This will make the submit button disable if the value >100 and person field control is blank.

Add a Lable and set the text property of that label as below:

varErrorMsg

 
I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Regards,
Krishna
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.


I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

Proud to be a Super User!

Regards,
KrishnaV
If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members / new members of the community.

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,399)