In the On Submitted section you are using: var item = createContentItem("Solution",
We want to update the team's content, not create a new contentItem. You'll need to do something like this:
var updateResult = updateContentItem(contentByVersionId(data.teamId), {
make sure to add validation after to check if the update was successful. Something like this:
if(updateResult == 1 || updateResult == 2 ) { addError("serverValidationMessage", localizedText.updateSettingsError); }
Remove the word counter on the solution repo URL input
In the On Submitted section you are using:
var item = createContentItem("Solution",
We want to update the team's content, not create a new contentItem. You'll need to do something like this:var updateResult = updateContentItem(contentByVersionId(data.teamId), {
make sure to add validation after to check if the update was successful. Something like this:
if(updateResult == 1 || updateResult == 2 ) { addError("serverValidationMessage", localizedText.updateSettingsError); }
Remove the word counter on the solution repo URL input