survey-creator icon indicating copy to clipboard operation
survey-creator copied to clipboard

Image Picker - Custom `imageitemvalue` property doesn't immediately appear in Choices collection editor

Open JaneSjs opened this issue 2 years ago • 0 comments

UPDATED: "showModel" attribute should be set to "list".

Serializer.addProperty("imageitemvalue", {
  name: "imageId",
  displayName: "Image ID",
  type: "number",
  showModel: "list"
});

T15215 - add the field "Image ID" https://surveyjs.answerdesk.io/internal/ticket/details/T15215


Usage Scenario: add an imageId field to Image Picker items. Modify the defaultJson definition of an Image Picker question to include a custom imageId property value.

Issue: a newly added Image Picker question doesn't display custom imageId property values. It is necessary to reopen a choice detail tab to refresh the UI and make the custom value appear.

View CodeSandbox

JaneSjs avatar Oct 23 '23 15:10 JaneSjs