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 / Setting a fields defau...
Power Apps
Answered

Setting a fields default value only when selecting onSelect

(0) ShareShare
ReportReport
Posted on by 378

recording fix for subtasks.gif

 

In this example I select the first button at top, it open a newform, editform1, I want to see to set a field's value to Yes.  As you can see already it's already set to yes before I click the first tab/button

 

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

    @olsen9 

    Check your default value for that control.  That is where you will find the problem.

    What formula do you have in it?  And, are you intending to have a dropdown and a textinput control for it?  I assume they are connected somehow.

  • Verified answer
    olsen9 Profile Picture
    378 on at

    I have a drop down value.  I ended up putting in the defaultselectedItems If(editform1.Mode=New , ({Value: Yes})

    So that sets the default value on FormMode.New.  I only want the value on editform.New so I ended up changing the defaultMode to View and on my button OnSelect added "NewForm(EditForm1), Navigate(Screen2);

     

    Which now it only sets the default value when I move to the next screen.

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