Help with code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 12:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 01:25 AM
@Robbie The field needs to be mandatory if it is empty AND has values available. If field is empty and has no values available to choose from, it shouldn't be mandatory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 03:50 AM
Thanks @B_pppppp - and just to clarify further, when you say 'The field needs to be mandatory if it is empty AND has values available' - what you mean is, if there are 'Business Services' available?
From my understanding, the getControl method provides something similar to DOM manipulation, so I could change the style of the field or enter ghost text for example. (Please someone correct me here) It does not provide a handle to lookup the actual business service values.
How would reference qualifiers etc be taken into consideration? Would the full table lookup be performed onLoad and therefore add load and a potential performance impact?
It's a good thought process, but I'm not sure how this would work in reality.
Without using the getControl method (which I will look into further), and based on the requirements, I would simply make the field mandatory and allow for a 'None' value which would be available as the first available option when a user hits the lookup/magnifying glass.
Please come back and let me/us know if you find a workaround for this.
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie