Usage of javascript function in the "Arguments" field in the Module settings

DistanceChen
Tera Contributor

Good day. May I have some advice here please? In the Module settings, in "Link Type" tab, I specify the "Link type" as "List of Records", which I need to open a list view for a customized table, then in the "Arguments" field, "&sysparm_query=field=javascript:new [an existing script include]().[an existing function]()", here I need to specify a condition with a value returned by a defined function in the script include:
DistanceChen_2-1731665278595.png


When I save the settings and open the desired list view to verify the result, I find, the defined condition works fine, the data in the table can be filtered as expected. However, I find one issue: if I click the "Filter" button to view the listed condition, the desired value can't be populated in the corresponding drop down field, in that drop down field, no any value is selected at all:

 

DistanceChen_1-1731665115148.png

Does anyone have idea how to get it solved? Thanks a lot.

0 REPLIES 0