Reference Qualifier - How to return no rows when dependent field is empty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2016 08:25 AM
Hi,
I have 3 fields on the form
1) Category
2) Tier 1
3) Tier 2
Tier 1 is dependent on Category and Tier 2 is dependent on Tier 1.
I implemented a simple reference qualifier which works fine. Only issue that if Category is null (On form load during insert), Tier 1 returns all the rows. Is there a way to restrict not to return any rows for Tier 1 when Category is empty. Please provide some insights on this.
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2016 05:29 AM
Hello,
Can you please share the script for this. I have same requirement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2016 02:00 AM
Hello, it's an old post but I had the same requirement and did something like:
In the script include as ref qualifier:
if (current.category != '') {
//create your code to return the desire filter
return filter;
}
else {
return "sys_idIN"; //it will return nothing.
}
Regards
Renaud
Do not feel shy to mark correct or helpful answer if it helps or is correct