Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Submit of form results in missing value in Dropdown and Combobox

(0) ShareShare
ReportReport
Posted on by 128

I have a form in which there is values that I would like to use in 13 other forms...

(when the user submits the main form, the other 13 are submittet in the background)

 

jlkeas_0-1702475544912.png

The values that I need on the 13 background submit is saved as global variables... (also in order to reuse the information later - as the next submit might be based on the same values = less data to enter)

 

This is the code for the submit-button:

Set(CurrentSagKunde;ComboBox1.Selected.Kundenavn);;
Set(CurrentSagKundeKontakt;Dropdown1.Selected.Kundekontaktperson);;
Set(CurrentSagNavn;DataCardValue5_1.Text);;
Set(CurrentSagKundeRef;DataCardValue11.Text);;

SubmitForm(Form1);;
SubmitForm(Form1_1);;
SubmitForm(Form1_2);;
SubmitForm(Form1_3);;
SubmitForm(Form1_4);;
SubmitForm(Form1_5);;
SubmitForm(Form1_6);;
SubmitForm(Form1_7);;
SubmitForm(Form1_8);;
SubmitForm(Form1_9);;
SubmitForm(Form1_10);;
SubmitForm(Form1_11);;
SubmitForm(Form1_12);;
SubmitForm(EditFormSager_Opret);;

Navigate(Screen_Forsiden; ScreenTransition.None)

 

When it reaches the red code it is the form above that is submitted... But now the information in the form marked with green is empty and nothing is saved to sharepoint regarding these variables...

 

If I create another button with on the submit of the form above it works fine... So somewhere above in the code the information is changed...

 

Here is the code for the Dropdown and the Combobox... (Default is set to be the values in the global variables)

jlkeas_1-1702477020901.pngjlkeas_2-1702477040792.png

Wkr Jørgen

 

 

Categories:
  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: Submit of form results in missing value in Dropdown and Combobox

    Hi @jlke-as ,

     

    You could use this formula to submit the form and the from will not be refreshed.

     

    Patch(DataSource,BaseRecord,FormName.Updates)

     

     

    Best Regards,
    Bof

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard