An Office service that supports add-ins to interact with objects in Office client applications.
Hi @JazzAviator ,
I'm glad to hear you solve the problem ,if you have any issue about SharePoint, you are welcome to raise a ticket in this forum.
By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others." and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:
[using switch function multiple times]
Issue Symptom:
I have a custom list form with a bunch of fields. many feilds are hidden on load and will populate as the user selects certain options. i'm running in to an issue though. I have a drop down with a bunch of options. when a user selects an option, it displays their choice and then an additional dropdown selection with the same options. The problem I run in to is that if a user selects an option on the second dropdown, it populates the new field, but if they change their selection in the same field, it populates the next selection but doesn't remove their first selection. If I attempt to hide the previous, then it also deletes the results of the first selection.
Current status:
I scrapped the switch function and just wrote it the long way with a crap ton of "if" statements.
You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.