Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
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:
  • Xenophonic Profile Picture
    44 on at
    Re: Javascript not able to get Dataverse Yes/No choice

    Thank you!

  • Verified answer
    Fubar Profile Picture
    7,960 Super User 2025 Season 1 on at
    Re: Javascript not able to get Dataverse Yes/No choice

    Try

    $('#fieldlogicalschemaname').is(':checked')); 
    
    or 
    
    $("#fieldlogicalschemaname").find("input[type='radio']:checked").val();

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 >