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: 

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

Jelena Saveljic
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!
September 2, 2021

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Leo
Community Champion
September 3, 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 

TAGS
AUG Leaders

Atlassian Community Events