how to put condition on function field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2022 11:51 PM
Hi,
I have a function field for which code is
glidefunction:concat(user_id, name,'(', ')', last name)
But I want it to work only when user_id is not empty because I have some brackets used here so if user_id is empty it is coming like (). So I want condition to run only if user_id is not empty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-20-2022 01:43 AM
Hi @Akki1
You can than create your own function and use it. Please refer below link for more info:
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2023 12:54 PM
I've seen that documentation. But there is a piece I'm missing. Where do you create/run/store the GlideDBFunctionBuilder script? Inside a script include? I'm pretty sure this is obvious to everyone who knows and totally missing from the documentation for those of us who don't. I see that I can add a call to the built-in functions adding a function field to a table, but I don't think I can add the whole script there?