Customise form

Customise form

DocNCDocNC Posts: 24Questions: 6Answers: 0

My datatable/editor store images (of course, url of images), 1 by row;

When editing by main form, I need to display this image into the form (some data are handwritten in the img);
I use a template but of course

<editor-field name="img"></editor-field>

results in allowing user to edit the url of the image, which is not a good idea.
1) Is there a way to tell the main form to use the render to display data
2) or is there a hook in API to get the id of the row currently edited ?

Thanks for your support
Michel

This question has an accepted answers - jump to answer

Answers

  • DocNCDocNC Posts: 24Questions: 6Answers: 0

    sorry for disturbance.
    just use
    ``modifier()
    Get the identifier for the row(s) currently being edited / removed.

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Yep, that's it. Glad you found it,

    Colin

This discussion has been closed.