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 / Get Option Set Value f...
Power Pages
Unanswered

Get Option Set Value from Liquid Code

(1) ShareShare
ReportReport
Posted on by 16

Hi, 

 

I try to get the values of a choices field but it's not working.

In my contact table, the user has a field called crc9d_scope and it's a multi-select type.

 

I tried to get the values using liquid in custom javascript form option by doing thess syntaxes but no results :

 

var scope = '{{ user["crc9d.scope"].label}}';
var scope = '{{ user.crc9d.scope.value}}';
var scope = '{{ user.crc9d.scope}}';
var scope = '{{ user["crc9d.scope"].value}}';
 
the outputs are either nothing or 'System.Collections.Generic.List`1[Adxstudio.Xrm.Web.Mvc.Liquid.OptionSetValueDrop]'
 
My goal is to get the values from the user connected and set the field value in my form with these values.
 
Thanks in advance for any suggestions
 
Categories:
I have the same question (0)
  • Inogic Profile Picture
    1,135 Super User 2025 Season 2 on at

    Hi,

     

    Firstly try to retrieve the contact using fetch xml in web template and try to set the value of multi optionset field.

    You can follow below provided link to retrieve and get the values of multi optionset field.

    https://www.inogic.com/blog/2022/02/easy-configuration-of-choices-column-in-power-apps-portal/

     

    Hope this helps!!!

     

    If you find this solution helpful, please mark it as accepted solution.

     

    Thanks!
    Inogic Professional Services
    An expert technical extension for your techno-functional business needs
    Power Platform/Dynamics 365 CRM
    Drop an email at crm@inogic.com 
    Service: http://www.inogic.com/services/ 
    Power Platform/Dynamics 365 CRM Tips and Tricks: http://www.inogic.com/blog/ 

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
Fubar Profile Picture

Fubar 78 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 75

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard