No HTML generated for hidden Domino field

Posted on 2011-05-10
Medium Priority
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

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

Author Comment

ID: 35728832
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

Sjef Bosman earned 1000 total points
ID: 35730112
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

Assisted Solution

Sam654 earned 1000 total points
ID: 35734525
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

ID: 35735513
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.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

809 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