cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jayendra
Level: Power Up

validation issue

Hi  All,

 

My requirment is when i click  the submit button it will show the validation like "Please Enter the text box ". My i know  How to created I fallow like this below 

 

onselect (if(!IsBlank(txtsecfunded.text),"Please enter the Secfunded"))

if(!isBlank(txtsecfunded.text),false,true).

 

But is not showing any validation.

Regards,

jayendra

1 REPLY 1
Highlighted
Super User
Super User

Re: validation issue

Hi @jayendra

 

In terms of validations, you could use a text label to test and then use the notification feature for the submit button.

 

Create a text label and have the Text=if( IsBlank(txtsecfunded.text) , "this is blank" , "this is not blank")

 - This way during testing you can see easily if your IsBlank is working correctly

 - I see that you put !IsBlank in your example, which means if it is NOT Blank then ask them to insert information? I think this is meant to be just IsBlank as below:

 

Once you have established that your formula is working as it was intended, you can then use the notify feature to display a notice to the user when they click the Submit button:

 

onselect =
if(
    IsBlank(txtsecfunded.text),
       Notify("Please enter the Secfunded", NotificationType.Error),
      SubmitForm(formname)
)

I set up a test example of this:
image.png

 

 

 

image.png

Which was successful in Submitting the new value.

 

If I change the check to IsBlank(Label2.text)
image.png

 

Hope this helps!




Don't forget to 'Mark as Solution' if a post answered your question and always 'Thumbs Up' the posts you like or helped you!

Helpful resources

Announcements
thirdimage

Power Apps 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

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,556)