The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events