Q5: I'd recommend using optionalProperty over optionalBlock 
https://reports.jenkins.io/core-taglib/jelly-taglib-ref.html#form:optionalProperty

On Sunday, June 2, 2019 at 3:00:15 AM UTC+2, Yufei Zhang wrote:
>
> For Q4, we can use a Boolean fields, and the corresponding UI element can 
> be checkbox or something. But now I have another similiar question
>
> Q5. about foldable configuration block , reference here : 
> https://wiki.jenkins.io/display/JENKINS/Writing+a+foldable+section+controlled+by+a+checkbox.
>  
> In an optional block, if user check the box, the hidden content would 
> appear. But besides this, what should I do if I also want to set a certain 
> boolean field in the object to be true, when the user check the box. Is 
> there a certain tag attribute do such thing ?
>
>  
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/a6755875-9ba8-42f3-817e-177372c09be3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to