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)
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)
Wkr Jørgen
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
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional