cancel
Showing results for 
Search instead for 
Did you mean: 

Element flow leaves blank areas in a subform

Former Member
0 Kudos

Hello Experts.
I have simple problem which i cannot resolve no matter how.

I created a Subform in it i have 2 textfields.
When value is not present i want to hide the 1st textfield and make 2nd to go up.
Subform is marked as flowed - i use following code to hide the textfield

data.#pageSet[0].Page1.Information_box.INQURY_NUMBER::ready:layout - (JavaScript, both)

if(this.rawValue== null){

this.presence = "hidden";

}

And this hides the textfield with caption. However blank space is left in place and 2nd textfield doesent move up - what should i do to make it this way ?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member230486
Contributor
0 Kudos

Hi,

You have to write coding in the script editor of a field( It will remove the blank spaces if the field does not contain any value) .In form:ready event of the field in the script editor.

Former Member
0 Kudos

The problem actually was that my subform was on a master page - thise have diffrent event handling cycle and this posed a problem.