Default input values

706
2
05-03-2023 02:22 AM
Jukyli
by
New Contributor

Hello,

I am using Javascript SDK 4.26. What I am trying to do is when user selects a feature layer point to create, the input on editor widget should have default value which couldn't be overwritten.

 

const pointInfos = {
	layer: pointLayer,
	formTemplate: {
		elements: [{
			type: "field",
			fieldName: "SAV_ID",
			label: "ID Input",
			hint: "test",
			editableExpression: false
		}]
	}
};

 

0 Kudos
2 Replies
RaymondHuang_Sg
Occasional Contributor

Hi Jukyli,

Perhaps I did not fully understand your intent/problem that you are facing. If this is still of concern, can you help further elaborate what you faced or what you have tried but work or didn't work?

Cheers,
Raymond
0 Kudos
Jukyli
by
New Contributor

Hello.

When I select a point on map, the Editor widget comes up. What I want to do, it would have prefilled (default) value so user doesn't have to write anything by hands. For example "test" (in the image it is filled by "hint" operator, but I need it as input value).

Jukyli_0-1683486793721.png

 

0 Kudos