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 / Radio Buttons If blank...
Power Apps
Answered

Radio Buttons If blank setup

(0) ShareShare
ReportReport
Posted on by 519

Hello Everybody,

 

Wondering if you can help.

 

I have a form, will 2 x radio buttons, which are optional, but i would like if nothing is selected, if filling in the SP column with

"On-Site" when the submit is pressed.

AndyPowerAppNew_0-1673436590457.png

 

On button select, i have this:

AndyPowerAppNew_1-1673436636014.png

This is the SP list

AndyPowerAppNew_2-1673436680045.png

So, either if the 'Remote' column is blank is says "On-Site' or another choice option called "On-Site" that is is hidden on the fronted from the user ? im not sure the best way to do this?

 

Any advice would be great

 

Thank you

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @AndyPowerAppNew

    All the logic is in the Update property of the card. In a form, that is really the only property that matters. The rest is window dressing. Never put anything after SubmitForm() in the button. The other functions belong in the OnSuccess property of the form. You don't want them to execute unless the form submits successfully. 

  • AndyPowerAppNew Profile Picture
    519 on at

    Hi @Drrickryp ,

     

    Thank you i have changed to 'OnSuccess' property, but if no radio button is selected, and i press " Sign In " the column in SP list shows empty in the list, can we put "On-Site" so the SP list is not blank?

    Thanks

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Create the logic in the Update property of the card for that column:

    If(IsBlank(Radio1.Selected.Value) , "OnSite", Radio1.Selected.Value) 

  • AndyPowerAppNew Profile Picture
    519 on at

    Hi @Drrickryp ,

     

    Thank you, i have an error, 

    AndyPowerAppNew_0-1673439427178.png

    What have i done wrong here?

     

    Thanks

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @AndyPowerAppNew

    My typo, I left out the closing ")" on the IsBlank. 

  • AndyPowerAppNew Profile Picture
    519 on at

    Hi @Drrickryp ,

     

    I have tried to add, If(IsBlank()DataCardValue19.Selected.Value), "OnSite", (DataCardValue19.Selected.Value),

    please may you edit the formula, im doing something is not sure 😞

    AndyPowerAppNew_0-1673440444896.png

     

    Thanks

  • AndyPowerAppNew Profile Picture
    519 on at

    Hi @Drrickryp ,

     

    Just wondering there is any update for me please ?

     

    Thanks

     

    Andy

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @AndyPowerAppNew 

    I fixed it in my answer above.

  • AndyPowerAppNew Profile Picture
    519 on at

    Hi,

     

    Sorry , i not sure if im doing anything wrong, but get red lines under it

    AndyPowerAppNew_0-1673454037455.png

    AndyPowerAppNew_1-1673454121693.png

    AndyPowerAppNew_2-1673454641907.png

    Please would you mind fixing for me ?

    Thanks

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @AndyPowerAppNew 

    Rename the dropdown control to something logical and use that name in the formula.  Is it a dropdown or combobox?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 600

#2
WarrenBelz Profile Picture

WarrenBelz 478 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard