Select to view content in your preferred language

AGOL Edit Widget, how to rename the button Close to Accept

547
3
05-18-2017 06:07 AM
JoseSanchez
Frequent Contributor

Good morning everyone,

I am using WAB developer edition and customizing the Edit Widget directly on the source code Widget.js

Is there a way to rename the button "Close" to "Accept" or "Save" on the Attribute Inspector  window?

The attribute inspector gets called in the Edit Widget.

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Jose,

   In your apps widgets\Edit\nls\strings.js file change close: "Close", to what ever you want.

JoseSanchez
Frequent Contributor

Hi Robert,

This is what I did in the Widget.js source code. I changed the value for  "label" from this.nls.close to  "Accept"

/***************************************

* Methods for extra works

****************************************/

_addButtonToInspector: function () {

var closeButton = new Button({

//label: this.nls.close,

label: "Accept",

"class": " atiButton closeButton"

}, html.create("div"));

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Jose,

   OK that works too.

0 Kudos