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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Two option set field u...
Power Apps
Answered

Two option set field using toggle in offline mode

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,
I am trying to create an app in offline mode. Here, I have one filed in CDS having two option as data type. And for that field I need to take input from user using toggle button. How can I do that in offline mode?

I am able to do it using dropdown in offline mode. 

Any help is appreciated.

Categories:
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Toggle control only return true or false, if you want to return back the two option set values, try to configure the OnCheck and OnUncheck property as follows.

    Toggle.OnCheck: Set(VarOption, 'TwoOptionName (EntityName)'.Yes)
    Toggle.OnCheck: Set(VarOption, 'TwoOptionName (EntityName)'.No)

    Then take the variable as the output of Toggle.

    Hope this helps.

    Sik

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-siky-msft ,

    This is working fine in online. But how can I use this for offline mode.

    Tejasvi_munge_1-1594893947483.png

     

    'TwoOptionName (EntityName)'

    What to insert here in offline mode?

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    I can't get your point. 

    When the app is offline, in general, the data is save into the collection. You just need to save the variable to the collection as normal.

    Can't this work?

    Sik

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard