Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I show Different parameters depending on other parameter enum choice

Martin_Caballero
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 22, 2020

I want to make a macro in which depending on the enum choice one parameter other parameters related to that choice pop up.

## @Param super:title=MoreCustomization|type=enum|enumValues=border image,border gradient|required=false|desc=advance customization
#if($paramsuper == "border image")##only want image parameter to show when selected border image enum choice
#set($cssline = "border-image-source: URL($paramimage);")

## @Param image:title=image url|required=false|type=false|desc=border image url

#elseif($paramsuper == "border gradient")##only want Gradient parameter to show when selected border gradient enum choice

#set($cssline = "border-image: linear-gradient($paramGradient);")

## @Param Gradient:title=border gradient|required=false|type=string|desc=Gradient colors

#end

but this doesn't work it shows both which i dont want

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events