Usage of javascript function in the "Arguments" field in the Module settings
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-15-2024 02:09 AM
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:
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:
Does anyone have idea how to get it solved? Thanks a lot.