Hi all,
I am working on an application in which a proposal gets created what a long variety of data. Often, a user will write something, then save it and come back later to the Editform and finalise everything.
I have a column named "Proposal Status" for now I have it as a Choices column (but this is NOT a requirement, the crucial thing for me is to either have "Template", "Active" and "Closed".)
If a user finalises the proposal he/she can press on "Activate and Download PDF" at this moment I would like for the Proposal Status to change to "Active" automatically. But how do I change the dropdowns selected value (or text-DataCard or any other option) into "Active" by simply clicking that button?
When a project is "Active" there are two outcomes: "Won" and "Lost". So I have a second Column called "Outcomes".
At this moment I do not wish for the user to edit the form anymore as the PDF is send out to the customer and the result awaits.
Is there a way change the "Outcome" field to either "Won" "Lost" if I click a button in the ViewForm? I was thinking to use Patch() function and have a button called "Won" and a button called "Lost" and then patch that items Outcome-field with either. However, it is quite challenging for me to figure out how to do that.
So to sum up:
1. How do I go about changing the combobox/dropdowns chosen value by clicking a button (the "Proposal Status")
2. How can I change the "Outcome" to either "Won" or "Lost" through the viewform