Filter a Lookup field rendered as a picklist - 4.0.4.

Posted by IramK on 25-Jan-2016 10:49

Hello,

I have a lookup field that has been rendered as a picklist. I have in the past used the rbf_setViewSelector function to set the appropriate view that filters the values based on a filter of a lookup field. However could someone point me in the right direction as to how I can set a view for a lookup that has been rendered as a picklist please?

Cheers.

Iram

All Replies

Posted by Chandrasekhar Gontla on 25-Jan-2016 13:34

Hi Iram,

As per documentation, rbf_setViewSelector is not applicable for lookup field which is rendered as picklist.

Doc Info: "This function sets the view ID used by a lookup field for both auto-complete and pop-up selectors.

Important: This function cannot be used on dependent lookups. This function only apply for "Selector" style lookup fields."

But, we have a way to set a view for lookup field of type picklist.

> Go to design this page.

> Open properties of lookup field.

> Select the view that you want and save it.

> Now the picklist will show the records which are part of that view only.

Hope this helps.

Find attached screen shot.

Thanks and Regards,

Chandu.

Posted by IramK on 26-Jan-2016 09:28

Hello Chandu,

Many thanks for your reply.

Cheers.

Iram

This thread is closed