
Announcements
So I am building a form for my company to submit change requests. They have a large list of standard changes that happen weekly and would like to use a drop down to auto populate the text boxes so they do not need to fill them out. They will edit some of the text fields after the drop down has filled out the text box. This is the issue I am running into. I am able to auto populate the text fields with the text that I would like but when submitting the form it will revert back to what the original text was with that template.
Example: The form was just created and the template has nothing selected.
Lets say we want to select the template 'Decomission Server' which will auto populate the Title and Description of the Change text boxes.
If a user edits the title to say something like including the name of the server or whatever and then submits the form. The title will change back to Decomission Server. What I would like to happen is that it saves the edit that the user has done.
Here is the code that I use for each text field:
If(DataCardValue6.Selected.Value = "Decomission Server","Decommission Server", Parent.Default)If(DataCardValue6.Selected.Value="Decomission Server","Follow ____ process to decommission servers. ", Parent.Default)
I have about 6 different templates but for simplicity I only included Decomission Server.
Try:
If(FormNmae.Mode=FormMode.New&&DataCardValue6.Selected.Value = "Decomission Server","Decommission Server", Parent.Default)
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.