Manage Learn to apply best practices and optimize your operations.

Combining text fields and html for the best of both worlds

I have a form which is being accessed via Notes as well as Web browser.

I have a form which is being accessed via Notes as well as Web browser. I was using pure html for the Web version of a text field per documentation on the IBM Web site:

This allowed me to control the size and behavior of the text box. (Using the html attributes of a text field, you can only control how long a field is, and how many characters you can enter. )

Problems with this setup - when you open an existing document in read mode via Web browser the html will not display the existing text field value and more importantly, when you do switch to edit mode, any previous value entered will not be displayed.

I have an editable text field called Comments_1 with a hide when formula of:

@IsDocBeingEdited & @IsMember("$$WebClient";@UserRoles)

I have a computed text field whose formula and hide when formulas are:

"[<TEXTAREA NAME=" + "" + "Comments_1"+ ""+ " ROWS=7 COLS=50>]"+Comments_1+ "[</TEXTAREA>]" !@IsDocBeingEdited | @IsNotMember("$$WebClient";@UserRoles)

This gives me the best of both worlds. I am able to use html to format the fields as I want, and I don't lose any values when accessing a previously created document via the Web browser.
(NOTE: Only tested using I.E. 5.5)

Dig Deeper on Domino Resources - Part 3

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...