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 / Default entry in form,...
Power Apps
Unanswered

Default entry in form, dropdown,

(0) ShareShare
ReportReport
Posted on by 13

Hi,

 

Absolute newbie here.

 

The situation is, once a hotel guest checks in, they are given a number of questions to answer to personalise their stay.  I want the form to have default answers from one of the choices (either yes or no choice, or selecting an option from a dropdown).  The booking table (booking is created separately, and therefore exists), has a separate column for each question.  The guest's answers should populate this table.

 

I tried a few solutions but didn't quite work for me.  Please help!

Capture.JPG
Categories:
I have the same question (0)
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    I didn't exactly understand your problem. But if setting the default value is the problem. Use Dropdown instead of combo box. By default the at least one answer will be selected in your dropdown when you submit the form.

  • cg777 Profile Picture
    13 on at

    Hi Zmansuri, 

     

    It currently is a drop down box in a form.  What I want to achieve is to have one of the options be displayed/chosen as a default so that if the client submits the form, there will be default values in the table and none will be empty.

  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @cg777 ,

    Do you want the dropdown boxes in your form to have default values?
    You can set values in the default properties of Datacard.
    In my scenario, my data source is SP table, and all fields except "Title" are of Choice type.
    vdezhilimsft_0-1667807856568.png

    Best Regards,

    Dezhi

  • cg777 Profile Picture
    13 on at

    Hi Dezhi, thank you for your response.

    I don't know if I am doing it incorrectly, but the formula does not seem to want to work for me.

     

    using: If(Form14.Mode=1, {Value:"Yes"}, ThisItem.Q1) as a base,

    I edited it to:

    If(FrmPersonalise.Mode=1, {Value:"No"}, ThisItem.'Complementary coffee?'); 

    but it does not seem to want to work.  Please see attached.

     

    Capture.JPG
  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @cg777 ,

    Could you please show me the error message?
    What type is the "Complementary coffee?" field in your data source?
    You can try just writing "{Value:"Yes"}" on the default property of Date Card

    vdezhilimsft_0-1668046613705.png

    Best Regards,

    Dezhi

  • cg777 Profile Picture
    13 on at

    Hi Dezhi,

     

    While using "{Value:"Yes"}" makes the value show up, it does not save to the dataverse, if i send the form as is (if the choices are altered, then they are saved, but with {value:yes} is does not save .

     

    Datatype is yes no choice.

     

    unfortunately i no longer have the error as i was playing around with it.

  • cg777 Profile Picture
    13 on at

    I seem to have come up with a different issue, after resolving my own.  the default comes up as "yes" no matter what i do

    Capture.JPG

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard