Dynamically add value to pillbox list

3 posts by 2 authors in: Forums > CMS Builder
Last Post: June 22, 2020   (RSS)

By daniel - June 22, 2020

Hi Kitsguru,

I think your best bet for achieving something like this would be to add a text field below the list field in which you can type the new option(s) (if there are multiple options, they could be separated by comma or newline). Then using a custom plugin to hook into the "record_presave" action to analyze this text field and create new records in the lookup table as necessary, and append the new record nums to the list field value (using listValues_unpack() and listValues_pack()).

Let me know if that fits your need, and/or if you have any questions about the particulars.

Thanks,

Daniel
Technical Lead
interactivetools.com

By kitsguru - June 22, 2020

Thanks Daniel, I can do that.

Jeff Shields