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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Javascript not able to...
Power Pages
Answered

Javascript not able to get Dataverse Yes/No choice

(0) ShareShare
ReportReport
Posted on by 44

Has anyone able to successfully get the selected value of the dataverse Yes / No choice?

I am trying to get the value of the selected choice but unable to do it.

xenophonic_0-1683126067872.png

 

 

$(document).ready(function () {
 $("#cr6bb_terminationForm").change(onDisplaySectionChange);
 onDisplaySectionChange();
 
});

function onDisplaySectionChange() {
 var selectedOption = $('input[name="#cr6bb_requirespasswordchange"]:checked').val();
 alert(selectedOption)
}

 

for testing, this is the code I made but it gives me an alert of "undefined" 

 

anyone managed to get through this?

 

Categories:
I have the same question (0)
  • Verified answer
    Fubar Profile Picture
    8,461 Super User 2026 Season 1 on at

    Try

    $('#fieldlogicalschemaname').is(':checked')); 
    
    or 
    
    $("#fieldlogicalschemaname").find("input[type='radio']:checked").val();
  • Xenophonic Profile Picture
    44 on at

    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

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!

Leaderboard > Power Pages

#1
Suriyanarayanan V Profile Picture

Suriyanarayanan V 39

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 28 Most Valuable Professional

#3
Fubar Profile Picture

Fubar 18 Super User 2026 Season 1

Last 30 days Overall leaderboard