cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe - Shift fields left dynamically

Former Member
0 Kudos

Hello,

if we have in one line on our PDF formular three fields e.g. TITLE, FIRSTNAME, LASTNAME - how could we configure that the third field is shifted left if for example the second field is empty. We require to avoid empty space.

We could concatenate all three informations into one field. But the question is, if there is also a soluton directly in ADOBE Lifecycle Designer?

Thank you

Kind regards

Manfred

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Wrap all three fields in a subform which is flowed. Use the javascript in the initialize event of the subform to hide the fields which are empty.

If (field.rawValue == null || field.rawValue == "")
{
    Field.presence = 'hidden';
}

Thanks & Regards,

Sanoosh

Former Member
0 Kudos

Hi,

Santoosh approach is correct but just that there is a small bug in the script.

Find it below.


If (field.rawValue == null || field.rawValue == "")
{
    Field.presence = "hidden";
}

Cheers,

Sai

Answers (0)