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 / How can I keep a radio...
Power Apps
Unanswered

How can I keep a radio button as Blank (no value), after submitting the form? It sets automatically to false, I don`t want neither false nor true.

(0) ShareShare
ReportReport
Posted on by 520
Radio - Default 
f(IsBlank(_currentRecord.ContactProjectLeader), Blank(),
!IsBlank(_currentRecord.ContactProjectLeader), 
If(ThisItem.ContactProjectLeader = true, "Yes",
ThisItem.ContactProjectLeader = false, "No"))

//this is what I tried, also tried Reset instead of Blank, but none of these work..
Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Robert94 

    I would recommend this for your Default property:

    If(ThisItem.ContactProjectLeader, "Yes",
     !ThisItem.ContactProjectLeader, "No",
     Blank()
    )

    And since you are "keying" off of _currentRecord in your formula, set the Reset property of the Radio control to:

    IsBlank(_currentRecord)

     

    I hope this is helpful for you.

  • Himanshu_90677 Profile Picture
    416 on at

     Did you try this?

    Screen Onvisible - Reset(Radio);

  • Robert94 Profile Picture
    520 on at

    Not working, and now is showing as a No before even submitting.
    The formula I wrote, seems to be working on the other forms from different screens, it`s a splitted form on multiple screen, not sure why on the form with the Title (the 1st one to be submitted), all the radio set to No after submitting, but on the other forms from other screens that have the same datasource and items(bu different columns/datacards), they don`t, they remain Blank.

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Robert94 

    Depends on how you are splitting the forms and what your Item property is on the Form.

    Also, is ContactProjectLeader as Yes/No column in your datasource?

    What is _currentRecord and how are you setting that?

    Lot's of "depends"!!

  • Robert94 Profile Picture
    520 on at

    Yes. it is Yes/No column.

    Radio control - Items:
    Table({Key: "Yes", Value:true},{Key: "No", Value:false})
    
    //All forms have the properties like this
    Form - Items:
    _currentRecord
    
    Form _ OnSuccess:
    Set(_currentRecord, Self.LasSubmit)
    
    Radio Datacard - Update
    dcvContactProjectLeader.Selected.Value
    



  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Robert94 

    How are you submitting the form then?

    And - why would the Radio control be blank again??  If you are setting the record to the last submit (which I would assume would have a true or false value for that column), then the underlying record (_currentRecord) will also have that column with true or false.

    Which is what I would expect your would want...if your form is then showing that record, then it should have the value of that record shown in the form.

     

    If you were setting your record to a blank record (to become a new record in the list), then I would expect that your Radio control would be blank (based on the formula sent).

     

    So I guess what I am asking is - if you have a form that you submit and then purposely make the record of the form to be the last submitted record...then it is not going to reset a radio control.

    Are you intending to have the last submitted record shown in the form after it is submitted, or are you expecting to create a new record (blank form) at that point?

  • Robert94 Profile Picture
    520 on at

    I am expected to have the last submitted form shown, I want to make everything fully dynamic, the form to be reedited whenever. For ex: I want to submit just the title and come back later and answer the radio questions, or submit the title, and keep editing the form...
    This work for the majority of column, no input = Blank, I have choices column and they remain Blank.
    But for the Y/N, I don`t know why it can`t remain just Blank.

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Robert94 

    Then the issue is with your Update property on the datacard!

    What is that formula?

  • Robert94 Profile Picture
    520 on at

    It was on the previous answer:

    Radio Datacard - Update
    dcvContactProjectLeader.Selected.Value

    I mean it updates properly

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Robert94 

    Sorry...I see you provided that earlier!

     

    Here is the thing...what is it updating?  A true a false or a blank?

    If it is a true or a false, then your underlying record - _currentRecord - is going to have a true or false in it.  And, based on your default formula, it will reset to either true or false.

     

    What you need to look at would be the following:

    - Create a new record

    - Submit the form

    - View the values in the _currentRecord, specifically the ContactProjectLeader column value - if it is anything other than Blank, then your radio control will be showing the true or false value, regardless of reset.

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard