S
S
Stan_12015-12-30 22:12:29
MODX
Stan_1, 2015-12-30 22:12:29

How do I prefill the MODx form?

Good evening!
Please advise. There is a window for creating a new record. It opens, of course, empty. How can I make certain fields populate by default?
That is, you need to do the following.
1. The user clicks the "Create new xxxxx..." button
2. The maximum number in one of the columns is retrieved from the MySQL table.
3. This number is increased by one
4. A window opens, for example, Doddles.window.CreateDoddle, and one of the fields is already filled with the previously found number.
Advise where to dig. According to "modx window" and "fill default value", "prefill" and so on did not help. :(
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sanes, 2015-12-31
@Sanes

value="text"

I
Igor, 2016-01-20
@igamov

Are you talking about autocomplete fields ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question