Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to provide default values to the widget?

Deleted user December 16, 2021

I have used Javascript to update the widget's email as we know it within the application, however when I try to submit the values have not been validated therefore the input has an outline as if it is empty, does the widget not verify values of inputs until a user has interacted with the input?

For reference I am adding in default summary and Email like below 

iframe.current.contentDocument?.querySelector("#email");

if (emailInput && user) {

emailInput.value = ` ${user.email} \n`;

}

But as you can see from the photo it is suggesting I need to input something into the input

Screenshot 2021-12-16 at 14.44.25.png

1 answer

1 vote
Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 27, 2021

Hello @[deleted],

Welcome to the Atlassian Community!

When using the widget, currently, it's not possible to pre-populate fields. We understand that you would like their account to be automatically added to the field, but this functionality is not supported, they will have to type their email address.

There is a feature request suggesting the implementation of this ability:

Please, click on vote and watch to receive updates about the feature.

For help with your Javascript, you can reach out to our Developer Community:

Kind regards,
Angélica

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events