How to force the bulk edit modal fields to render as Multiple Values?

How to force the bulk edit modal fields to render as Multiple Values?

DocaDoca Posts: 6Questions: 4Answers: 0
edited February 24 in Free community support

Link to test case: In the example, if we select only 1 item, the fields are prefilled with the existing values

Description of problem:
I'm working on a project that sends IDs to be edited from the backend.
How can I force the fields to always render as "Multiple Values" (Similar to when multiple elements with different values are selected), even if there is only 1 value, or all the values of the same field are the same?

Thanks in advance!

Answers

  • allanallan Posts: 64,230Questions: 1Answers: 10,599 Site admin

    How can I force the fields to always render as "Multiple Values" (Similar to when multiple elements with different values are selected), even if there is only 1 value

    Do you mean if the multiple rows all share the same value? For example if I select two rows that have an office in "San Francisco" it will show the plain value?

    There isn't an option to do what you are looking for I'm afraid. The closest is fields.multiEditable which can be used to disable multi-row editing of fields.

    Allan

  • DocaDoca Posts: 6Questions: 4Answers: 0

    Yes in this specific example, I want the user to see "Multiple values" instead of San Fransisco, because I'm passing other IDs with the editor that are on the other pages, and might have another value for this field.
    It's unfortunate I can't set the field to always show "Multiple values"
    Thanks!

  • allanallan Posts: 64,230Questions: 1Answers: 10,599 Site admin

    I've taken the point of view that it doesn't have multiple values, therefore the shared value should be shown and can be edited.

    You could disable the field if you want to make it readonly.

    The API will still send the multiple values on submit, even if they have a shared value.

    Allan

Sign In or Register to comment.