hide the selection list
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2023 11:32 PM
Hey.
How can I hide the selection list of the service offer field, the intention is not to hide the entire field from the form, I want the field to still appear in the form, but as soon as I click on the magnifying glass on the right, The selection list that opens will be empty with no values.
The selection list of the field for which I want to hide the values will only appear if the service field (business_service) is full. And it will display only the values whose parent field is the same as the parent field of the service field (business_service)
The service offering field is of type:
Currently, part of the requirement works as soon as a value is selected in the service field, then the selection list in the service offering field will only say the values whose parent is the same
I am attaching the method and the existing code In the dictionary tab of that field:
I need to add my requirement to that line of code
Thank. Shir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 04:22 PM - edited 11-20-2023 04:23 PM
Changing the reference qualifier to
javascript: 'parentISNOTEMPTY^parent=' + current.business_service;
should do it.
In case no business service is selected, nothing will show in the pick list (the 1st part of the query eliminates those Offerings that might have no parent and thus would satisfy the parent == '' criteria), if a Service is selected only Offerings of that service will show up.
Note that the site replaces the colon after the JavaScript keyword javascript with the HTML entity equivalent, so don't mind that.