cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mart11
Helper I
Helper I

How to perform form validation when using custom input function?

Hi everyone, 

 

I recently asked a question on this forum regarding passing form data to a custom component. 

mart11_0-1659512940940.png

In the above, the Calculate button is a custom component which has its onSelect and other behavior functions defined within the components section. To pass the values, I used an input custom function which makes use of Form.Updates. This works great! 

 

However, my question is, how do I validate the form using this approach? I require that the fields are not blank. 

 

Any suggestions on how I may implement this please? 

 

Thanks in advance!  

 

1 REPLY 1
iAm_ManCat
Super User
Super User

A simple solution would be to make the component (calculate button) invisible until all fields are filled, like

 

Visible:

Len(TextInput1.Text)>0
&&
Len(TextInput2.Text)>0

etc for all fields you want to be mandatory and non-blank

 

Cheers,

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,209)