title: In C1 CMS How to create a list dynamically by getting input from user at the function property window?
body: <p>Actually I am trying to create two controls one is drop down and another is List. Both are similar and easy for static values or values which are already stored somewhere.</p>
  
  <p>But what I want is, I want the Power user to create or add / edit list items at the run time ( When he is inserting function to the page )</p>
  
  <p>so similar concept to this : <a href="http://jsfiddle.net/DVbGY/1/" rel="nofollow noreferrer">http://jsfiddle.net/DVbGY/1/</a></p>
  
  <pre><code>&lt;div data-role="content"&gt;   
  
      &lt;div id="items"&gt;
      &lt;/div&gt;
      &lt;input type="text" id="item" /&gt;
      &lt;input type="button" value="Add item to list" onclick="appendToList()"/&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;script&gt;
  var listCreated = false;    
  function appendToList(){    
  if(!listCreated){
      $("#items").append("&lt;ul id='list' data-role='listview' data-inset='true'&gt;&lt;/ul&gt;");
      listCreated = true;
      $("#items").trigger("create");
  }
  var value = $("#item").val();
  var listItem = "&lt;li&gt;" + value + "&lt;/li&gt;";
  $("#list").append(listItem);
  
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>but in the function property window.</p>
  
  <p>Currently I am using comma separated list from user but its not viable solution as my next step is to add url as well with the input data from user so Lets say user wants to create a drop-down button and user is adding items and associating particular link to its items.</p>
  
  <p><a href="https://i.stack.imgur.com/eOKKL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eOKKL.jpg" alt="enter image description here"></a></p>
  
  <p>As you can see in above image i am getting data from user but instead of that text box i want to use above mentioned similar concept.</p>
  
  <p>How can I make this possible ? or Is it possible in C1-CMS ? if yes please explain with Example in detail.</p>
  
  <p>Thank you for your time and thanks reading this post.  </p>