on 2013 Dec 17 8:51 AM
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
Hi Vallamuthu,
Try the below code:
Nabarko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In field property presence make it as hidden..
This will let others fields to come up if that field is empty..
Thanks,
Vignesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.