web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / SUBMIT BUTTON CONTROL
Power Pages
Unanswered

SUBMIT BUTTON CONTROL

(0) ShareShare
ReportReport
Posted on by 21

Hello 🤗

can you help with this problem i have to submit button in my webform but i want to control it , make like condition if not true i want the page not load out and nothing change if it's true submit like usually

submit == Envoyer

MO4_0-1609145711230.png

 

Categories:
  • OOlashyn Profile Picture
    3,498 Most Valuable Professional on at

    Hi @MO4,

    I think the easiest way will be to deactivate button until proper conditions. So the user will see the button but will not be able to press. You can use jQuery to do so. First, you need to find the id of the submit button and use the next code to deactivate/activate it:

    // Disable #x
    $( "#x" ).prop( "disabled", true );
     
    // Enable #x
    $( "#x" ).prop( "disabled", false );

     You can use onchange event of the field that use in condition to make enabling/disabling of submit button automatic.

  • MO4 Profile Picture
    21 on at

    @OOlashyn 

    thanks 😉 i think of this solution , but the problem that i want to make like alert pop up message to show the user where is the problem when they click submit button 

    i will use this solution if there is any other suggestion please feel free to help me 

    😉

     

     

  • OOlashyn Profile Picture
    3,498 Most Valuable Professional on at

    @MO4 if you want to show the error and don't allow submit you can use client-side validation with page validators (see official docs).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 35

#2
M Bilal Khan Profile Picture

M Bilal Khan 33

#3
11manish Profile Picture

11manish 21 Super User 2026 Season 2

Last 30 days Overall leaderboard