Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

capture value from a Two Option Field on Portal

Posted on by 335

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

  • Suggested answer
    Er Prahlad Profile Picture
    Er Prahlad 70 on at
    RE: capture value from a Two Option Field on Portal

    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

  • smcconnell Profile Picture
    smcconnell 335 on at
    RE: capture value from a Two Option Field on Portal

    Hi,

    Its Customer self-service

    thanks

  • Suggested answer
    ashish12 Profile Picture
    ashish12 3,079 on at
    RE: capture value from a Two Option Field on Portal

    Hi,

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

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans