FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



Jun 22, 2012, 4:27 PM
126 Posts

Re: Dynamic editable box creation

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: javascript
  • Replies: 1
 If you want to creat X number of edit boxes use client side script like the answer posted here (2nd answer):
 
 http://stackoverflow.com/questions/5656392/how-to-create-input-type-text-dynamically
 
If you have an XPages input field with event handlers or converters etc. and you just want to make it appear on a button click. You can create it and set its "rendered"  propery to false and then use server side script to set it to true like below:
 
getComponent(controlID).setRendered(true);
 
 this will make it appear on the page when button is clicked

FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.