The CreatorCon Call for Content is officially open! Get started here.

dynamic filter option on reference field

Rj27
Mega Guru

Hi All,

Can we define dynamic filter option on 'requested for' reference field as shown?
Can we use 'current' this way directly? Because the following script is not working at all.
Note: I am using this under default value related list with a reason to set default values when i click on lookup option. From reference qualifier i am returning something else and can't define the default values there.

find_real_file.png

 

find_real_file.png

38 REPLIES 38

Hi Ankur,

Checked by creating classless SI. It's not working that way either. i am calling this from default value related list.
Below are the screenshots:

find_real_file.png

find_real_file.png

find_real_file.png

I am able to call this via dynamic reference qualifier.

try this:

var GetRequestedFor = Class.create();
GetRequestedFor.prototype = {
initialize: function() {
},
getRequestedFor:function(){
var query="user_name=ST185245^sys_domainDYNAMIC"+current.sys_domain;
return query;
},
type: 'GetRequestedFor'
};

Did you try this on dynamic ref qualifier or dynamic filter option form?

mr18
Tera Guru

better you create script include and return true if your query matches then call the script include in your dynamic filter