This is the solution to a unique use case:
Our marketing department wants to be able to send out email promotions to users. That is simple enough. Additionally, they want to be able to select the recipients by some or all the following:
- All
- Name
- City
- Zip Code
In addition, they want to be able to select all matching users of a city or zip code or just the Point of Contact (POC) for the account.
Last requirement is that if Name is selected with POC no other users can be selected and vise versa. If the POC is not selected, the user can add names.
-
Clone this repository
git clone https://github.com/CodingWithDavid/DynamicLinkedDropdown cd DynamicLinkedDropdown -
Open in Visual Studio or Visual Code a. With Visual Code you will need to install the C# extensions
-
Press F5
- The final solution to the use case stated above.
- Event handling of the changing of the drop down
- Event handling of selection items in the list
- Showing and hiding the items based on a flag
- Using simple HTML elements as a drop down and list box