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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Conditional Logic in P...
Power Pages
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:
I have the same question (0)
  • EmadBeshai Profile Picture
    806 Moderator on at

    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!

  • Verified answer
    domliu37 Profile Picture
    314 Super User 2024 Season 1 on at

    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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard