can I hide qListView on the page based on specific value on one of the qListForm fields on the same page? - SharePoint Customization - SharePoint for All - Dell Community

can I hide qListView on the page based on specific value on one of the qListForm fields on the same page?

can I hide qListView on the page based on specific value on one of the qListForm fields on the same page?

This question has been answered by kenny.wu-quest

Hi,

I need some assistance if anyone can help.

I have a qListForm and qListList view controls on the same webpart page. Based on specifc value of one of the fields selected in qListForm, I need to post back and hide/show another qListView control on the same page.

I know that "Form Component behavior" is only applicable for the elements within the same object.

Is there anything for my scenario? Thanks!

Verified Answer
  • Hi there,

     

    Well, qListForm cannot support this feature directly, but My suggestion is use some JavaScript to do that. For example, drag a HTML Form Web Part into the page, write some JS to watch the field that in qListForm, if this field equal to a special value, then hide the qListview…

     

    Kenny.

All Replies
  • Hi there,

     

    Well, qListForm cannot support this feature directly, but My suggestion is use some JavaScript to do that. For example, drag a HTML Form Web Part into the page, write some JS to watch the field that in qListForm, if this field equal to a special value, then hide the qListview…

     

    Kenny.

  • Thanks Kenny. I will give it a shot :)