Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Answered

Conditional Logic in Power Pages form

(0) ShareShare
ReportReport
Posted on by 13

Dear All,

 

I am trying to make a form in Power Pages with some sort of simple conditional logic. Such as when a certain condition is clicked a text field is visible for the users.

 

Thanks.

Categories:
  • Verified answer
    domliu37 Profile Picture
    314 Super User 2024 Season 1 on at
    Re: Conditional Logic in Power Pages form

    Hi @aesthetic123 ,

     

    If its a basic form, add custom JS on: Open your Basic Form in Portal management ModelDrivenApp-> select Additional Settings tab -> at the bottom, add your custom JS.

    If its a Multistep form, add custom JS on: Open your Multistep form in Portal management ModelDrivenApp-> open your step from the Form Steps tab -> at the botton of the Form Options tab, add your custom JS.

    Your JS will be something similier as:

    $(document).ready(function () {
    if ( //your condition) {
        $("#abc_contactid").closest("td").show();
    }
    });
    ----------------------
    If you enjoy this post, click the thumbs-up button. If it helped you, mark it as a solution so others can find it easily.

    Cheers,
    Dom
  • EmadBeshai Profile Picture
    806 Super User 2025 Season 1 on at
    Re: Conditional Logic in Power Pages form

    Hi @aesthetic123 ,

     

    You can achieve that by using jQuery inside the forms, Please check the below links

    Show/Hide fields, based on the selection of a drop... - Power Platform Community (microsoft.com)

    Solved: Hide/Show options in Option Set fields - Power Platform Community (microsoft.com) 

    EmadBeshai_0-1697720785860.png

     

     

    Please mark this answer as accepted if it helped you, thank you!

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 69 Super User 2025 Season 1

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 49 Most Valuable Professional

#3
Jon Unzueta Profile Picture

Jon Unzueta 43