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 / Form conditional fields
Power Pages
Answered

Form conditional fields

(0) ShareShare
ReportReport
Posted on by 19

Hi All!

 

I can't seem to find the answer dedicated to Power Pages only:

 

Would it be possible to show certain form fields based on the answer from the previous question? Let's say I have a field with Yes/No choice and I want the next field to be visible only when Yes was selected in a previous field,

 

Thanks!

Categories:
I have the same question (0)
  • Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    Hi @mateusz_pateam ,

     

    Yes, it is possible. 

     

    If you're facing any challenges, feel free to ask.

     

    Thanks,

    Saud

     

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • mateusz_pateam Profile Picture
    19 on at

    @saudali_25 Possible how? Can you please elaborate?

  • Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    Hi @mateusz_pateam ,

     

    Here is an example, how you can do based a Boolean field:

    $(document).ready(function () {
     $("#myYesNoField").on("change",handleFieldVisibility);
     handleFieldVisibility();
    });
    
    function handleFieldVisibility() {
     var varChange = $('#myYesNoField').val();
     
     if (varChange == 1) {
     
     $('#myFieldName').parent().parent().show();
     }
     else {
     $('#myFieldName').parent().parent().hide();
     }
    }

     

    For more details, please check out this article which explains in detail how you can hide/show different controls in Power Pages using jQuery.

     

    Thanks,

    Saud

     

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • mateusz_pateam Profile Picture
    19 on at

    @saudali_25 Thanks! I think your article URL is missing? I was wondering if this could be possible without jQuery?

  • Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    Apologies @mateusz_pateam - Here is the link to follow:

     

    https://oliverrodrigues365.com/2020/07/19/power-apps-portals-javascript-tip-01-hide-show-elements/

     

    Power pages support jQuery, JavaScript and Liquid. For hide/show you can use JavaScript or jQuery. 

     

    Thanks,

    Saud

     

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    Hi @mateusz_pateam - If you don't have any questions, you can Mark the answer as Solution where it solved your problem to enable other users to find it.

     

    Thanks,

    Saud

  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    You could use a multistep form with condition steps, but this may not suit your particular scenario as it requires a submit/next to then use the condition to load the next form/tab. If multistep is not suitable your only option is  to do it with JavaScript or JQuery (JQuery tends to get used instead of pure javascript as it is already in the portal and is generally works in most browsers, and has a pre-built cross-browser document.ready).

  • mateusz_pateam Profile Picture
    19 on at

    Thanks you!

     

    @saudali_25 One last question. In your opinion, where this code should be placed? in the management portal?

  • Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    Hi @mateusz_pateam - That's correct. 

     

    Thanks,

    Saud

     

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • mateusz_pateam Profile Picture
    19 on at

    @saudali_25 Where exactly in the management portal? Can you help me with that?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 71

#2
DP_Prabh Profile Picture

DP_Prabh 36

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 32 Most Valuable Professional

Last 30 days Overall leaderboard