Hi @Shah Baloch ,
unfortunately you can't hide just the second part of your cascading select list.
Your code is incorrect!
def subField = getFieldById("customfield_13200:1") //not sure sub value part ca
In order to take value of second part of your field :
def subField = primaryField.getValue().get("1")
You can change or set that second part value but you can't hide just the second part.
My suggestion is to set a None value for all values in second part where there are no values.
Hope this helps,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.