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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

capture value from a Two Option Field on Portal

(0) ShareShare
ReportReport
Posted on by 341

Hi All,

I'm looking to capture the value from a Two Option Field which is in Radio Button format on Dynamics Portal then use that in a condition to determine whether another field is visible.

the syntax for the field visibility isn't an issue but im struggling with getting the value from the Two Option Field, the using that in if statement.

could anyone help with the syntax for that please?

thanks in advance

thanks

I have the same question (0)
  • Suggested answer
    ashish12 Profile Picture
    3,079 on at

    Hi,

    Which type of portal are you using? Self Service or Custom?

    Thanks

  • smcconnell Profile Picture
    341 on at

    Hi,

    Its Customer self-service

    thanks

  • Suggested answer
    Er Prahlad Profile Picture
    70 on at

    Hey Buddy!

    Dynamics portal while creating radio button control appends _0 & _1 at the end of attribute id. So if you need two capture value, you can just use the below code to check which radio button is checked.

    document.getElementById("new_issubscribed_0").checked

    pastedimage1578850782027v1.png

    Thanks

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 Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
NeerajPawar Profile Picture

NeerajPawar 31

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 19 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 18

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans