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 Apps / Issue with form and Ra...
Power Apps
Answered

Issue with form and Radio button value

(0) ShareShare
ReportReport
Posted on by 41

Hello everyone,

 

I am still learining Power apps, I have issue with a formula for Form, If the form is in New I want to to capture value from Radio Button in App Screen, if Edit mode, I want to capture from Column, I have formula in default property like this, but Power app keeps saying it expects record value.

 

If(EditForm1.Mode=FormMode.New,Radio1.Selected.Value,ThisItem.Created_Updated.Value)

 

How is my formula wrong please.

 

JakubN_0-1691525814443.png

Thank you,

 

Jakub

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @JakubN ,

     

    Can you please share:

    - What data source are you using? (SharePoint, Datverse, Excel, etc.)

    - What is the type of the 'Created_Updated' column? (Choice, LookUp, Person, etc.)

    - The Items properties of the Radio control?

    - The Default property of which control (and type of control) are you trying to set?

  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @JakubN,

     

    Is the Created_Updated column a choice column and are you using SharePoint by any chance? Should that be the case, give the code below a try:

    If(
     EditForm1.Mode = FormMode.New,
     {Value: Radio1.Selected.Value},
     ThisItem.Created_Updated
    )

    Should this not work, then we will need some additional information on the datasource and column type.

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • JakubN Profile Picture
    41 on at

    Hello Laurens,

     

    yes, it is choice field and your code works, thanks a lot.

     

    Regards,

     

    Jakub

  • JakubN Profile Picture
    41 on at

    .

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard