Topic
  • 5 replies
  • Latest Post - ‏2009-12-16T22:45:07Z by SystemAdmin
SystemAdmin
SystemAdmin
1860 Posts

Pinned topic Expand Field Height Webform Server

‏2009-10-14T05:07:14Z |
Hi, I need to be able to dynamically expand the height of a field in a table when the user is entering data in that field (it has focus) then shrink it again once it loses focus. This is easy in the viewer using the 'focused' property, but is it possible to do it using the webform server?

I've tried DOMFocusIn with no success... any help would be greatly appreciated.

If this isn't possible it would be acceptable to have the field be exactly the right height for the data in it.

As an idea, we have a read-only field that is pre-populated on form open, the user then enters other data on the form and may need to print/fax the form. By allowing an unlimited amount of data in this field some is cut-off when printed.

Thanks for any help/insight.

Andrew
Updated on 2009-12-16T22:45:07Z at 2009-12-16T22:45:07Z by SystemAdmin
  • mbir
    mbir
    411 Posts

    Re: Expand Field Height Webform Server

    ‏2009-10-20T18:45:09Z  
    If you look at the Info Center, "focused" is supported looking at Webform Server's supported XFDL options, you just need to properly enable it. (There's a foot note for the option.)

    Not sure if that will solve all your issues but should get at least you moving in the right direction.
  • SystemAdmin
    SystemAdmin
    1860 Posts

    Re: Expand Field Height Webform Server

    ‏2009-10-21T02:22:52Z  
    • mbir
    • ‏2009-10-20T18:45:09Z
    If you look at the Info Center, "focused" is supported looking at Webform Server's supported XFDL options, you just need to properly enable it. (There's a foot note for the option.)

    Not sure if that will solve all your issues but should get at least you moving in the right direction.
    That does help with the first problem, thanks :) Still looking at the second problem of the inactive field needing to be the exact height of the text in it...

    Thanks for the help :)

    Andrew
  • SystemAdmin
    SystemAdmin
    1860 Posts

    Re: Expand Field Height Webform Server

    ‏2009-10-21T04:57:34Z  
    That does help with the first problem, thanks :) Still looking at the second problem of the inactive field needing to be the exact height of the text in it...

    Thanks for the help :)

    Andrew
    Ok, figured it out, using labels which automatically change height to fit content can hide it and use expandb2b. Used this as a base:

    http://www-10.lotus.com/ldd/lfwiki.nsf/dx/04092009042045PMRNOVBS.htm

    :)
  • Giandolce
    Giandolce
    54 Posts

    Re: Expand Field Height Webform Server

    ‏2009-12-16T16:11:49Z  
    Ok, figured it out, using labels which automatically change height to fit content can hide it and use expandb2b. Used this as a base:

    http://www-10.lotus.com/ldd/lfwiki.nsf/dx/04092009042045PMRNOVBS.htm

    :)
    Could you provide me an example of this? I am trying to implement the same functionality for one of the forms I am working on.

    Thanks.
  • SystemAdmin
    SystemAdmin
    1860 Posts

    Re: Expand Field Height Webform Server

    ‏2009-12-16T22:45:07Z  
    • Giandolce
    • ‏2009-12-16T16:11:49Z
    Could you provide me an example of this? I am trying to implement the same functionality for one of the forms I am working on.

    Thanks.
    Here is the growing field example that I used :)

    Andrew