cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

Submit button invisible until end of form or gallery

Hi All,

 

I'm setting up apps with forms that require the user to scroll down to enter more info. I currently have the Submit button on a custom DataCard at the bottom of the form. This works fine but I'm wondering if there is a more elegant way of doing it.

My question is: is it possible to hide the Submit button until the user has scrolled to the end of the form or gallery?

 

Kev

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Submit button invisible until end of form or gallery

I'm not sure if more elegant, as I quite like your method, but you could have the Submit button outside your form and then check for IsBlank() in those datacardvalue items, in their order, and the first one that is false you'd use SetFocus to jump the user immediately to that field?

 

So pseudocode for the Button's OnSelect would be something like:

 

If( IsBlank(Item1.Text),
    SetFocus(Item1),

     IsBlank(Item2.Text),
    SetFocus(Item2),

    etc

    etc
    //else value

    ,
    Submit(FormName)

)

 

Could you give that a try and let me know how you get on?

 

Cheers,

Sancho


@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


View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Submit button invisible until end of form or gallery

I'm not sure if more elegant, as I quite like your method, but you could have the Submit button outside your form and then check for IsBlank() in those datacardvalue items, in their order, and the first one that is false you'd use SetFocus to jump the user immediately to that field?

 

So pseudocode for the Button's OnSelect would be something like:

 

If( IsBlank(Item1.Text),
    SetFocus(Item1),

     IsBlank(Item2.Text),
    SetFocus(Item2),

    etc

    etc
    //else value

    ,
    Submit(FormName)

)

 

Could you give that a try and let me know how you get on?

 

Cheers,

Sancho


@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


View solution in original post

Highlighted
Resolver I
Resolver I

Re: Submit button invisible until end of form or gallery

 @iAm_ManCat 

It worked but I agree. My original way is better I think 🙂

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

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

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,667)