Skip to Content

Adobe forms: MOVE UP the text field/subform

Hi friends,

IF any one of the text field is initial then hide that field and move up the remaining fieds/subforms.

Is it possible to move up the fields.

Thanks with Regards,
Vallamuthu M

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 17, 2013 at 09:15 AM

    Hi Vallamuthu,

    Try the below code:

    if ( text01.rawValue == null ) { text01.presence = "hidden"; } It should move up the fields. Let me know if it helps. Regards,

    Nabarko

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 17, 2013 at 02:13 PM

    Hi,

    In field property presence make it as hidden..

    This will let others fields to come up if that field is empty..

    Thanks,

    Vignesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Christopher Solomon

      Hi,

      Put the fields in a sub form which is Flowed and flow direction Top to bottom.

      In Initialize event  for the field which is to be hidden write the below javascript code:

      if (this.rawValue == Null)

      this.presence = "hidden"

      else

      this.prsence = "visible"

      Hope this will solve your issue

  • avatar image
    Former Member
    Dec 17, 2013 at 11:11 AM

    Hello Vallamuthu,

    Please follow the steps below.

    1) Wrap the group of text elements in a sub form of type flowed.

    2) Write the Javascript code on the text element which you want to hide only in Initialize event.

    if ( this.rawvalue == " " )

    {

         this.presence = "hidden";

    }

    So when this text element is hidden, the element below it will fill come up and fill this empty space. Please ensure that the sub form is of type flowed.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 17, 2013 at 11:20 AM

    Hello Vallamuthu,

    Things to consider:

    1.Keep them in subform which is of type "Flowed" and top to bottom.

    2.On the textfield/text where you wanted to check if the value exists,please go to either form cal or javascript and write the script in the calculation event.

    Sample for Formcalc.

    if ($.rawValue == Null) then

    $.presence = "hidden"

    else

    $.prsence = "visible"

    endif

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 18, 2013 at 01:51 PM

    Hi Vallamuthu,


    This will related to Mr.vignesh reply but few modifications.


    Put the fields in new subform with content = flowed, flow direction = top to bottom.


    Try this below javascript in initialize event of text field (which ever you want to hide/remove)


    if (this.rawValue == null)

    {

    this.presence = "inactive/hidden";

    }

    else

    {

    this.presence = "visible";

    }

    But in this solution,you should insert remaining ( fields which are after the hidden text field ) fields also with hidden text field in the same subform.

    Add comment
    10|10000 characters needed characters exceeded