Forum Discussion
DavidPontier1
6 years agoQrew Cadet
I found this thread when I ran into the same problem. I found a solution.
You need to create two temporary text fields. The first is a multi-select text field field in your parent table that has the same choices as your certification list. The second is just a regular text field.
When you add a new report, set the first multi-select temporary field equal to the new certification. You can do this through an automation or code it in the button you use to save the report or return to the parent table. When you do this you over right the old value that was in that field instead of adding to the multi-select. Which is why we had this problem in the first place.
Then create an automation that triggers every time this first temporary field changes. Also include in the trigger that Main multi-select field that you want to updated dose not contain the value in the temporary field. Multi-select fields can only be compared to other multi-select fields which is why this first temporary field has to be multi-select. This check will prevent the automation from running if the certification already exists in the main multi-select field.
Then for the action choose to modify the second text field. Choose the selection to both type and copy data. This option is not available for Multi-select fields otherwise you wouldn't need this intermediate step. First select your first temporary field, then type a semi colon and then select your main multi-select field. This will create your new full list in the text field.
Then you need a second automation that runs every time your second temp text field changes. Basically the first automation will trigger the second one. For the action of this automation you want to set your Main multi-select field equal to the second temp text field. I tried to combine these two actions in the same automation, but because QB tracks the old and new values, it doesn't recognize the new value of the second text field until after the whole automation is completed.
Hope this helps.
------------------------------
David David
------------------------------
You need to create two temporary text fields. The first is a multi-select text field field in your parent table that has the same choices as your certification list. The second is just a regular text field.
When you add a new report, set the first multi-select temporary field equal to the new certification. You can do this through an automation or code it in the button you use to save the report or return to the parent table. When you do this you over right the old value that was in that field instead of adding to the multi-select. Which is why we had this problem in the first place.
Then create an automation that triggers every time this first temporary field changes. Also include in the trigger that Main multi-select field that you want to updated dose not contain the value in the temporary field. Multi-select fields can only be compared to other multi-select fields which is why this first temporary field has to be multi-select. This check will prevent the automation from running if the certification already exists in the main multi-select field.
Then for the action choose to modify the second text field. Choose the selection to both type and copy data. This option is not available for Multi-select fields otherwise you wouldn't need this intermediate step. First select your first temporary field, then type a semi colon and then select your main multi-select field. This will create your new full list in the text field.
Then you need a second automation that runs every time your second temp text field changes. Basically the first automation will trigger the second one. For the action of this automation you want to set your Main multi-select field equal to the second temp text field. I tried to combine these two actions in the same automation, but because QB tracks the old and new values, it doesn't recognize the new value of the second text field until after the whole automation is completed.
Hope this helps.
------------------------------
David David
------------------------------