Avatar

Level 1

Thanks very much for your reply. I'm quite a novice with Livecycle and scripting and wasn't that sure about your instructions - my fault not yours!

In the meantime I've inserted a button and attaced the following script:

topmostSubform.Page1.Button1::click: - (JavaScript, client) ----------------------------------

// Toggle the presence attribute of the Field.

if

(TextField1.presence == "visible") {

TextField1.presence

= "invisible";

TextField1.presence

= "invisible";

}

else {

TextField1.presence

= "visible";

TextField1.presence

= "visible";

}

This allows the text to be inserted or removed, but does not close the whitespace gap when the dynamci text is not being inserted, e.g. the gap between Dear Mrs Thompson, and the static text which would follow the text being inserted. The dynamic text has a placeholder within the page and I need this to disappear /close up when the dynamic text is not inserted.

Dear Mrs Thompson (static)

placeholder for dynamic text ...........

more static text

Can you help?