Expand my Community achievements bar.

adjusting button positions

Avatar

Level 2

Hi All,

On my XDP form there are 8 buttons, and xml contains 8 tags for thease 8 buttons with value visible or hidden.

When some button having value hidden I need to hide that button and need to reposition remaining buttons.

Please help on same.

2 Replies

Avatar

Level 10

The buttons can reposition themselves if you place them inside a Subform which is set to be Flowed.

For hiding and displaying, you need to read the XML tag value in the initialize event and set the presence property.

For example..

if(xfa.resolveNode("$record.ButtonValues.Button1").value == " hidden")

     Button1.presnece = "hidden";

else

     Button1.presence = "visible";

Thanks

Srini

Avatar

Level 2

Thanks Srini,

But Flowed layout not working properly as position of buttons getting changed due to this. and now able to give space between two buttons, Is there any other alternative to reposition buttons.