cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Super User III
Super User III

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
Super User III
Super User III

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

Super User III
Super User III

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
Business Applications MVP
Twitter | Linkedin | YouTube | GitHub
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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (7,351)