I need to allow only one letter in the drive letter/mount point variable based on the server operati

Archana23
Tera Contributor

I need to allow only one letter in the drive letter/mount point variable based on the server operating type , if the server operation type is windows we need to allow only one letter like C or D.., and if the server operating type is linux we need to allow /usr/opt...

 

Please help me in scripting part.

 

 

Archana23_0-1711465488217.png

 

1 REPLY 1

maroon_byte
Mega Sage

Separate field for Drive Letter & Mount Point. The Drive Letter variable can have max_length=1.

Show Drive Letter or Mount Point variable based on Server Operating Type. I am assuming you know how to get the Operating Type using GlideAjax.

 

Alternative to not use GlideAjax code would be to add an Operating Type field on the form (read-only) and populate using Auto-populate on variables. Based on this read-only field, show/hide Show Drive Letter or Mount Point.

 

Regards,

Sharad