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

Make your filter simple for once. 

"active=true"

& checkfind_real_file.png

i have changed the query to simple one but still not getting the log.

find_real_file.png

find_real_file.png

find_real_file.png

Is it working in background script?

Thanks

Sudhanshu

Background script:

var test = new getRequestedFor();

gs.print(test.getReqFor());


Result:

*** Script: dynamic default filter script include
*** Script: active=true^name=Abel Tuter

Means it's working you can verify by usinf it in dynamic reference qualiifer option.

How are you calling it in default value field?

Thanks

Sudhanshu