#66 Placeholder label does not work with doclink field type


When creating a doclink field type and populating it with a list of documents you can select, the first document in the list is selected by default if the user saves the form. To avoid this, I wanted to use a placeholder, such as "Select a Document". I tried this by adding the first item in the list as: ["Select a document|"] (to separate the label from the value which is an empty string).

However, after doing this, when a user saves the form without selecting a document, it now saves the "Select a Document" text and turn it into the link text (the doclink field type acts on an empty reference) . When you go back in to that record and click on the link, it takes you to the home page..

Have used a work-around temporarily and added "" (an empty string) at the top of the list selection, but would ideally prefer to use the text "Select a Document" which doesn't currently work with the doclink field type.


  • Eric Brehault

    Eric Brehault - 2011-04-16

    The empty string is the correct approach.
    If you associate a label to the empty value, then the empty value is considered as a valid value, so the doclink will render it.
    If you really need to display "Select a Document" in your selection list, then you can do the following:
    - you enter "Select a Document|NOTHING" in your list
    - in the form onSaveDocument event, you add the following:
    if plominoDocument.getItem('MyField')=="NOTHING":

    Note: as it is not exactly a bug but a question about how to use Plomino, it would be better to use the Help forum rather than the bug tracker.

  • Eric Brehault

    Eric Brehault - 2011-04-16
    • status: open --> closed-invalid
  • Nobody/Anonymous

    You can buy best Football Boots in our website with cheap price. Nike Football Boots, Adidas Football Boots, Football Jerseys, Football Equipment sale online with cheap price and you can buy cheapest Football Boots with free shipping <a href="http://www.footballshop2012.com/">Nike Football Boots</a>

  • Nobody/Anonymous

    For man is man and master of his fate.
    <a href="http://michaelkorswatch.moonfruit.com/" title="Michael Kors Watches">Michael Kors Watches</a>

  • Nobody/Anonymous

    While there is life there is hope.
    <a href="http://www.nflshopjerseys.ewebsite.com/" title="cheap nfl jerseys">cheap nfl jerseys</a>


Log in to post a comment.