No HTML generated for hidden Domino field

Posted on 2011-05-10
Last Modified: 2013-11-16
I have a hidden field called TaskHistory that I copy from one type of document to another type of document (two different forms) in Lotus Domino. In the first document type it works fine, HTML is generated for the field and I can change the field value with JavaScript. In the second type of document, however, no HTML is generated for this field, so I can't change the field value with JavaScript. Both forms have "Generate HTML for all fields" checked. When I use the JavaScript on the second type of document I get the error "Couldn't find design note" because there is no HTML generated for the field.
The field is Text/Editable. The strange thing is that HTML is generated for two other hidden Text/Editable fields.
I can't understand why there is this difference, can any of you please help?  
Question by:kasperEH
    LVL 10

    Expert Comment

    Does the field exist in the 2nd form with a default value set.

    Author Comment

    The field does exist on the form, but does not have a default value. The two other hidden fields does not have a default value set either, but HTML is generated for them.
    LVL 46

    Accepted Solution

    I never relied on the setting of "Generate HTML for all fields". Don't use the hide-when on the field, but add, in the field's properties, last tab, a setting for Style: display:none
    LVL 7

    Assisted Solution

    I'm going to assume you're using "hide when" on the fields when you say "Hidden Domino Field".

    If you use a hide when that hides the field it will not be sent to the web browser at all. To get round this, hide the field when being read and then enter "TYPE=HIDDEN" in "Other" space on the HTML attributes of the field. That way it will not be visible to the user, but will have the HTML generated. We don't mind using the hide when in read mode as it's not sent to the browser as a "field" in this instance, just text.

    Why the field in the first form is still generating HTML when the hide when is set to hidden is more confusing to me.

    Hope this helps.

    Author Closing Comment

    Thanks for your solutions. Hiding the field in the HTML attibutes instead of using normal hide-when made sure that HTML was generated for the field.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
    Article by: Rob
    Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
    In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
    In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now