How do I format a numeric field in a pop-up of Editor widget ?

466
2
Jump to solution
09-19-2019 05:01 AM
MayurDodiya
Occasional Contributor

Hi,

I'm trying to customize my Editor widget pop-up, so that the field accept 2 decimal places.

I am using 3.29 API.

I tried below code and it didn't work :

fieldInfos: [
{
fieldName: 'LENGTH',
label: 'Length (m)',
isEditable: true,
format: {
places: 2,
digitSeparator: true
}

},
{
fieldName: 'SLOPE',
label: 'Slope (Degree)',
format: {
places: 2,
digitSeparator: true
}

},
{
fieldName: 'DIAMETER',
label: 'Diameter (cm)',
format: {
places: 2,
digitSeparator: true
}

},
{
fieldName: 'COLORTYPE',
label: 'TYPE',
},
],

Thanks,

Mayur

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Mayur,

Unfortunately, ESRI has not provided any options to format the displayed value. The PopupTemplate has option to format the values, but not with AttributeInspector.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Mayur,

Unfortunately, ESRI has not provided any options to format the displayed value. The PopupTemplate has option to format the values, but not with AttributeInspector.

0 Kudos
MayurDodiya
Occasional Contributor

Hi Robert,

Thank you very much for prompt reply.

Thanks,

Mayur

0 Kudos