How to hide variable editor conditionally

Ramkumar Rajend
Tera Expert

Hi Folks,

I need to hide variable editor based on variable values on RITM form level. Can anyone suggest some inputs on this? Also I need to display variable editor for some other conditions.

Regards,

Ram

12 REPLIES 12

Wouldn't it be lot easier to just create a duplicate view without variable editor and redirect the users to that view if the variable editor is not required at all?


Hi Kalai


For the REQ form we do switch the view as that was the easiest and the best way to do that.


On our RITM records, the client have around 5 main views which in turn have ESS views, so currently about 10 views.   As the client moves more teams from their old ticketing system over to ServiceNow (which is being done by a ServiceNow Partner), I can only foresee more views needing to be created to facilitate this - I have suggested using variable / variable sets more wisely to facilitate this, but they have decided against this.


so, right now with 10 views, creating double that to have a VE or not is a pain, adding more will only cause more pain - especially for maintenance going forwards.


Having this option at least alleviates that issue for now - yes, it may bite them on the backside in the future, however, if this is called via a routine as is done now, a single routine fix will fix them all



Cheers


Agree. Doesn't make any sense in creating more views for your case!



This is best example of technical debt!