Documentation > CMS Template API Library > Input > NextDropDownContainer()

NextDropDownContainer

Advances the DropDownContainer to the next row. Will throw an error if called before calling StartDropDownContainer. Will throw an error if NextDropDownContainer is called more times than there items in the dictionary passed to StartDropDownContainer.

public System.Void NextDropDownContainer()

Code Example

C#

Sample:

            		
            Dictionary<string, string> dropDownRows = new Dictionary<string, string>() {{"internal label", "internal_link" }, { "external Label", "external_link" }};
            Input.StartDropDownContainer("Link Type", "link_type", dropDownRows, firstRowLabel: "none");
            ShowAcquireParams aParams = new ShowAcquireParams();
            aParams.ShowBrowse = RelationshipType.Link;
            Input.ShowAcquireDocument("Internal Link", "internal_link", aParams);
            Input.NextDropDownContainer();
            Input.ShowTextBox("External Link", "external_link", "", 50);
            Input.EndDropDownContainer();
            
            	

Connect with Crownpeak