Hi there, I'm usign wpDiscuz on a personal project where I added a custom "select" field to the standard comment form. I see I can specify the set of possibile values for this field at design time, while I would like to fill it programmatically (ex. list of values calculated server side). Is this feasible within the plugin?
I'm attaching a screenshot where the current values are static and configured in the custom form configuration section, while I would like to load them from the server when the page is loaded.
Thank you for the possible support.
Hi @marco-briz,
I'm really sorry but there is no way to do that. This requires large changes in the plugin core.
Hi @elvina, thank you very much for your feedback.
I was hoping in a sort of hook-based workaround.
I also tried a client-side approach: I configured the select with dummy values in the Form configurator, and then, once the page is rendered, I replace the values with the needed ones using javascript ; unfortunately, once the "new" value is submitted, it is replaced-back with the original dummy value on server side. Do you have any additional suggestion?
Thank you.
I'm really sorry but we can't suggest anything.
First of all, we don't have the hooks for such cases, then even if we've had such a hook, we will have problems with saving the data. So, sorry but there is no way to do that.