Scripted fileds label


(Mehran Arefkhani) #1

Hi :slight_smile:
as you can see in above picture i have to use "doc['server.id'].value" in script to use it in url. but in label i want to show server.name to be more user friendly.how can i show server.name in label Template?


(Thomas Neirynck) #2

hi @Mehran_Arefkhani,

that's a sneaky one :wink: No, you won't be able to do that. The label template allows you to plug in the value of the field (in this case server.id), but not put in a different value altogether.

Is it possible that in your Script, you would just concatenate both the value and the id, and wrap that concatenated value in the template?


(Mehran Arefkhani) #3

tnx for your reply :).
yeah i can concatenate server.name+"_"+server.id but if i do template label will be some things like this "n1_f41251122231dfsd"
do you mean this?


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.