G
G
g9052019-08-01 14:56:59
MODX
g905, 2019-08-01 14:56:59

How to set a list of values ​​for a listbox in MODX?

Standard json "form tabs"

[
{
    "caption":"Test",
    "fields":[
        {
            "field":"cat",
            "caption":"cat",
            "inputTVtype": "listbox-multiple",
            "inputTV": "category"
        }
    ]
}
]

Is there any way to make the list of values ​​for the listbox come from another migx field?
The logic is as follows:
- create TV categories - add categories, there are 1, 2 and 3.
- create TV services - fields: Name, Price and Category.
I want the Category field to be generated automatically from the categories TV field as a multiple choice list.
In the admin.
How?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tatyana Anufrieva, 2019-08-02
@kalisto74

Here 's one way to implement

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question