Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Suggest an answer

Log in or Sign up to answer
0 votes
Leo
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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