Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,299,766
Community Members
 
Community Events
165
Community Groups

Behaviours field with pre-filled text not working properly when click outside of the field

Edited

Hi All,

Case of using Behaviours to pre-fill the Description text field.

When typing the description, everything appears to be fine until we click outside the description area: the description is reversed to the default template. 

How can we resolve this?

 

Regards,

Jelena

1 answer

0 votes
Leo Community Leader Sep 03, 2021

Hi @Jelena Saveljic

If  I understood correctly, you've placed a behaviour as "Server side script" for Description field

1. if you want the template to be applied based on another field then can use server side script if not initializer is the best option here

2. also you need to validate filled description value before you apply template. there are couple of methods and one is below

if(descField.getFormValue() == ""){

   //apply template to description field

 

let me know if that helps you

 

BR,

Leo 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

320 views 2 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you