POST
|
Does anyone know of how to apply styles (font color or font weight) to the description of a form element in the editor widget. For example show the text "A description" in red color and bold? Everything I see in the documentation for expressions is about the $feature. Tried html tags. {
type: "field",
fieldName: "primaryea",
label: "A field",
description:"A description",
input: {
type: "text-box",
maxLength: 20
}
}
... View more
12-13-2023
11:00 AM
|
0
|
0
|
212
|
POST
|
THank you. It works. I thought it was a bug based on the ESRI's example. But actually the code posted is missing some commas and it breaks the code.
... View more
12-06-2023
11:03 AM
|
1
|
0
|
167
|
POST
|
I tried to modify this example to disable the editing of geometry of existing features, but it doesn't work. Bug? https://codepen.io/lkoumis1/pen/MWLZPyJ?editors=1000 const editor = new Editor({
view: view,
// Pass in the configurations created above
layerInfos: [{
layer:editConfigCrimeLayer,
geometryUpdatesEnabled: false
},
{layer:editConfigPoliceLayer,
geometryUpdatesEnabled: false
}], Reference: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#layerInfos
... View more
12-05-2023
04:25 PM
|
0
|
2
|
285
|
POST
|
Hello @KittyHurley I just came across this posting and it helped me a lot to place the feature table at the bottom without the CSS hellhole. It would be great if calcite-table would be able read a feature table to populate its headers and rows. It can be done with quite bit of JS loops but it has to be an easier way.
... View more
11-30-2023
10:51 AM
|
0
|
2
|
609
|
POST
|
I have this simple JS app and trying to preset the value of a field. On this example is the Phone Number field but I want to know what am I doing wrong and I can't preset it using the setValue property. This is the property: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm-FeatureFormViewModel.html#setValue Here is the app.
... View more
11-21-2023
12:16 PM
|
0
|
1
|
217
|
POST
|
I have this simple shell panel positioned at the end. It seems that regardless the specified heightScale value (l, m, s), the shell panel does not change its height. My perception is that if we use heightScale value "s", then the end panel should be short to show the content of the page after its bottom edge. https://codepen.io/lkoumis1/pen/mdvWjev?editors=1000 @BenElan @KittyHurley
... View more
11-08-2023
10:32 AM
|
0
|
1
|
355
|
POST
|
ok. Thanks. The app that I am currently working on will have thousands lines of code (arcade + amd js) and it will be very hard to maintain without the use of external files.
... View more
11-08-2023
08:16 AM
|
0
|
0
|
231
|
POST
|
For the purpose of keeping the code clean and organized, it is better to have the code and styles in external files linked to the main file instead of have them scripted in the same file. Is it easy to use an external file for the stylesheets. However, the question here is how can we linked to external files that contain arcade and amd js. For example this one: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-featureform-async How do we link to the arcade and the rest of the js to an external file (s)? There is a response to a similar question here, but I don't use typescript. It would be very helpful if the above example was reconstructed to demo the use of external files. THank you. @HeatherGonzago @AnneFitz @KristianEkenes
... View more
11-07-2023
03:04 PM
|
0
|
2
|
363
|
POST
|
Thank you for taking the time to respond to my inquiry. I have one comment to add. It was actually suggested by another ESRI staff (not in the conversation) to actually use "false" instead of a named expression for the editableExpression. I will resort back to the latter. Kudos to you, @AnneFitz and all ArcGIS JS API team for the marvelous job you guys are doing.
... View more
11-02-2023
03:34 PM
|
0
|
0
|
309
|
POST
|
Thank you Anne. It would be very helpful to have a note at the valueExpression documentation to state that value expression will only work if the field is not editable, or even better made the editable false by default. https://developers.arcgis.com/javascript/latest/api-reference/esri-form-elements-FieldElement.html#valueExpression As far for my question regarding turning it off, sorry for the confusion. What I meant is that right after you create a feature, it returns to the creation mode again instead of returning to the initial screen. Attached is a short video to demo the issue.
... View more
11-02-2023
09:21 AM
|
0
|
0
|
323
|
POST
|
THank you for the response. As I mentioned on my post, I couldn't find the typo, but you did. Thank you. Now the required field is working. So, based on your feedback, even though the getuser script returns "no email" if no user is identified, nothing will be returned? By the way, I assigned temporarily, a user to the layer and the authentication prompted me for credentials. After I login, still the Email textbox was empty. Would be helpful if there are any examples available showing how the getuser script works on a standalone JS app. Lastly, do you have response for #3. Again, thank you for your time.
... View more
11-01-2023
02:58 PM
|
0
|
0
|
352
|
POST
|
I reposted this question and I wanted to repost it with additional questions. I have this simple editing script that intends to: 1. collects the portal user and pre-populated the email field. If a portal user is not detected, then it should return "no email". Unfortunately the script it doesn't work in this standalone JS but it does work in map view. 2. requires a field, in this case the Phone Number.I have a different layout with the field element objects declared individually and it works. But I need the field elements as in this case to be scripted under the form template. I think there is a typo. 3. I don't know if there is a switch to turn it off, but after you create or edit a feature, it would be great to return the editor to its original state and stop the create/edit of other features. https://codepen.io/lkoumis1/pen/VwgaGLX @ArnoFiva , @AnneFitz
... View more
10-31-2023
02:11 PM
|
0
|
6
|
455
|
POST
|
In SmartForm widget in WAB, you were able to set a preset value. For example, was able with minimum JS to preset a field with the user's email who logged in to the app. Is it possible to do so in the Editor widget in JS 4.x? Can it be done using the valueExpression of the Element and define the preset value? @AlixVezina
... View more
10-26-2023
08:22 PM
|
0
|
1
|
305
|
POST
|
I have two elements in the FeatureForm widget and I want to hide the second as long the first is blank. Once something is input in the first element then the second should appear. This is similar to the Smart Editor functionality in WAB. I tried this: elements: [{
// Autocasts to new GroupElement
type: "group",
label: "Testing",
elements: [{ // Autocasts to new FieldElement
type: "field",
fieldName: "first",
label: "First"
},
{
type: "field",
fieldName: "second",
label: "Second",
visibilityExpression: "IIF(!IsEmpty($feature.first))"
}
]
}, @JoelBennett ?
... View more
10-25-2023
06:20 PM
|
0
|
1
|
324
|
Title | Kudos | Posted |
---|---|---|
1 | 02-28-2024 09:35 AM | |
2 | 12-19-2023 06:48 PM | |
1 | 12-06-2023 11:03 AM | |
1 | 06-26-2023 09:20 AM | |
3 | 08-01-2023 11:35 AM |
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|