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

try this in background script

var test = new GetRequestedFor();

gs.info(test.getrequestedFor());

 

let me know what you get as an output. If you can share the screenshot that would be better

Regards,
Muhammad

This is what I am currently trying but not able to get the log when called from dynamic filter option.

However, when called from background script log is coming.

find_real_file.pngfind_real_file.png

 

I tried for client callable script as well, not coming from there too

Use semicolon at the end in the script column after

getRequestedFor();

It will work

Do you mean semicolon in the script field in dynamic filter option?

Yes & keep the name of script include different from the method name

Thanks

Sudhanshu