Home › Forums › ACF PRO › Random code field for coupons system › Reply To: Random code field for coupons system
Hey @keithlock,
Thanks for helping.
It’s seems to be a good solution, except that I don’t know how many coupons there’s gonna be, plus what if I make 3 coupons, then want to add another one? I should update the number input over and over again?
In addition to that, I can’t understand where I should put that piece of code? I need that in the moment that someone make a new row in the repeater input, it will get the “EXAMPLE” word and add to that some 3 random number.
There is some function/hook to run in the second that user create new row in reapter? so I can run a function that get the steady field word and add to that random number and update the sub-field?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.