Make a label appear if a condition is true
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2023 09:55 AM
Hello,
I am trying to create a solution to this scenario:
In a form, there is a reference field that references the cmdb_ci_computer table.
The user will enter their computer name in to the field, then I want that value to be used to check its age via: cmdb_ci_computer.purchase date.
IF it is found that the purchase date is less than 3 years ago, I want to display a Label on the form that says "This computer was purchased less than 3 years ago, are you sure you want to order a new one?"
ELSE no warning is displayed.
I assume this will need to be a Catalog Client Script.
Any assistance is appreciated, thanks!
0 REPLIES 0