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 :
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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 24 Super User 2025 Season 2

#2
TAHER Mehdi Profile Picture

TAHER Mehdi 14

#3
Fameeda Yaseen Profile Picture

Fameeda Yaseen 10

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans