cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe forms: MOVE UP the text field/subform

vallamuthu_madheswaran2
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

vallamuthu_madheswaran2
Active Contributor
0 Kudos

Hi Nabarko,

Thanks for your reply,

This coding is only hide the fields, The remaining field is not moved up

Thanks with Regards,

Vallamuthu M

ChrisSolomon
Active Contributor
0 Kudos

Follow what the other are saying. If your elements are grouped in a subform and that subform is set to "flowed", then when you set it to "hidden", that area will "shrink" and all elements below it will move up. It is typical to set up your elements something like....

subform_1 (flowed)

    --subform 2 (positioned)

            text box

            text

            drop down

subform 2 (flowed)

      text box

      label

subform 3 (flowed)

    --subform 4(positioned)

Then if you set subform 2 to "hidden", subform 3 will "move up" and appear under subform 1. Similary, if you "hide" subform 1, 2 and 3 would move up.

Former Member
0 Kudos
Hi Vallamuthu,
Put the text in a subform, and select the "Content" type as "Flowed".
Regards,
Nabarko

Answers (4)

Answers (4)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

In field property presence make it as hidden..

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

Thanks,

Vignesh

ChrisSolomon
Active Contributor
0 Kudos

Only if they are in a "flowed" container will they magically "move up" when others are hidden.

Former Member
0 Kudos

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

varun_vadnala3
Active Participant
0 Kudos

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

pavan_prabhu
Active Participant
0 Kudos

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.