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 / Javascript not able to...
Power Pages
Unanswered

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,344 Super User 2025 Season 2 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

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
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard