mplusplus
Forum Replies Created
-
Sure, I checked it again. I am not using any custom post type etc. I just use the CF7 fields and they are being saved in the database in a table.
– Did you mean that instead of
get_posts()I will write my own function to retrieve data from the DB table? I can do that.
– The code is populating the fields from the database, however, I need to pre-populate the selection by the current user in those radio buttons and checkboxes. With the given example, they are auto-populatingdefault:1, which will not work in my case (as this is user-dependent and I cannot hardcode this).Please let me know if I misunderstood you.
Thanks.
Unfortunately, this does not work for my case.
He is using[radio YOUR CF7 FIELDNAME HERE use_label_element default:1]. This will need me to declare the pre-selected value in the form, which I cannot (as I need to pull values from the database, so, my form values need to be declared on the page where the CF7 shortcode is).If you come across anything else please do let me know. Or if you can add this feature that will be great. It is very common for us to pre-populate a form with radio-buttons and checkboxes.
Thanks so much for remembering this.
Thanks again, however, this also has its search feature on the paid version.
In case you know any code or point me in the right direction, I can expand on that.Thank you so much.
I need my visitors to be able to search the data submitted by Contact Form 7.
So, the Excel option will not work.
Also, I cannot save the form data like posts. Any chance of a different idea?Thanks so much.
Hi @yordansoares, the search feature in this plugin is available only in paid version, unfortunately.
Is there a free code or something available? I am okay to customize it or expand it if you can give me any starting points.Thanks.
The issue is resolved. Thanks.
Forum: Developing with WordPress
In reply to: How to search members on custom user-meta? Any plugins?Thanks, @joyously
Forum: Plugins
In reply to: [Contact Form 7] How to pre-populate form fields from values in database?Forum: Plugins
In reply to: [Contact Form 7] How to pre-populate form fields from values in database?That works for textbox, thanks for that.
More questions:
– How to autopopulate checkboxes, radiobuttons or dropdowns? It did not work on these fields.
– How to autopopulate more than 1 field? If I repeat theadd_filtercode in functions.php, it is not accepted as valid code.Thanks.
Awesome! Thanks, @yordansoares.
Great! Thanks so much @yordansoares.
Forum: Plugins
In reply to: [Contact Form 7] Can I add my custom tags in Contact Form 7 markup like this?Thanks, @yordansoares.
@yordansoares That’s great! Thanks.
Instead of JavaScript way, is there any PHP way, please?
I need to update a db table via PHP when form is submitted.
Thanks
Hi @takayukister, I have already checked that and there is nothing to help my situation in https://contactform7.com/configuration-errors/invalid-mailbox-syntax/ or How to resolve configuration errors pages. Please see the screenshot https://snipboard.io/6M0w1B.jpg.
Thanks.
- This reply was modified 5 years, 5 months ago by mplusplus.