Repeat Control visibility based on a drop down value

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Repeat Control visibility based on a drop down value

Arjun
Hi

I tried displaying the repeat control based on a drop-down value and it worked fine.But the problem is even thought am hiding based on a control value the repeat control border is not hiding and it displaying as the attached screenshot.




Can you please help me on this.

Regards,
Arjun
Reply | Threaded
Open this post in threaded view
|

Re: Repeat Control visibility based on a drop down value

Alessandro  Vernet
Administrator
Hi Arjun,

Yes, this is because the Visibility in Grid Settings is not for the grid itself, but for grid rows. That expression is evaluated for every row, and determines which rows are shown. If the expression returns false for every row, the header still shows.

If you really want to hide the whole grid, right now you need to place it in a section, and use the Visibility rule on that section. Note that if your grid was in a section and you wanted to keep it there, you can add a sub-section, and you can set the title of that subsection to something that describes the grid.

And this is the RFE to improve this:

https://github.com/orbeon/orbeon-forms/issues/635

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Repeat Control visibility based on a drop down value

Arjun
Hi Alex,

   Thanks for the response . I tried as per your suggestion and it's working.

Regards,
Arjun

Reply | Threaded
Open this post in threaded view
|

Re: Repeat Control visibility based on a drop down value

Alessandro  Vernet
Administrator
Hi Arjun,

Very good! And thanks for confirming it is working for you.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet