Support request no output
-
Hello CodePeople.net,
thank you for providing this outstanding add-on, still as in need for this type of functioning, i was not successful in testing a new setup.
The bellow shortcode is not returning values nor the form field.[cf7-recordset id="cf7-recordset-285" type="user" attributes="user_email" logged="1" condition="{field.your-email}"] [cf7-link-field recordset="cf7-recordset-285" field="clients-email" value="user_email"]I’m running WP 5.9.1 and several C7 add-ons, from herein official repository. Can you advise how to further test or i should proceed with a practice of deselecting a plugins to narrow the problem ?
Thank you, regards
-
Hello @n381
Thank you very much for using our plugin. You sent me only two fields and not the complete form structure. So, I’m not sure if the other fields’ names or their types are correct.
However, if
clients-emailis an email field, and you want to fill it with the email address of the logged user, the pair of tags would be:[cf7-recordset id="cf7-recordset-285" type="user" attributes="user_email" logged="1"] [cf7-link-field recordset="cf7-recordset-285" field="clients-email" value="user_email"]You should remove the condition attribute from the
cf7-recordsettag (condition="{field.your-email}").Best regards.
Hello, thank you responding.
I’ve tried with a new form pre-set as the following field set<label> Your name [text* your-name] </label> <label> Your email [email* your-email] </label> <label> Subject [text* your-subject] </label> <label> Your message (optional) [textarea your-message] </label> [cf7-recordset id="cf7-recordset-285" type="user" attributes="user_email" logged="1"] [cf7-link-field recordset="cf7-recordset-285" field="clients-email" value="user_email"] [submit "Submit"]Still no outputting nor info not the input field.
Also tried with deactivated other C7 plugins. No results.
Can you advise further?Hello @n381
I will try to describe what your
cf7-recordsetandcf7-link-fieldare supposed to be doing.[cf7-recordset id="cf7-recordset-285" type="user" attributes="user_email" logged="1"]The
cf7-recordsettag loads a record with the user_email attribute, whose value would be the email address of the logged user. If the user is not logged, the record would be empty.[cf7-link-field recordset="cf7-recordset-285" field="clients-email" value="user_email"]The
cf7-link-fieldtag takes the records in thecf7-recordset-285recordset tag and fills theclients-emailfield with the value in theuser_emailattribute.And that is just the issue. Your form does not include a field with the
clients-emailname.So, you have two solutions:
You can replace the name of the
[text* your-email]as follows:[text* clients-email]Or you should edit the
cf7-link-fieldtag to fill the correct field:[cf7-link-field recordset="cf7-recordset-285" field="your-email" value="user_email"]Best regards.
Hello again and thank you for the response.
Form fields shortcode i’ve posted have inadequate field name attribute, thank you for correction.
But, that was not a problem as the following outputs nothing in addition to standard fields.<label> Your name [text* your-name] </label> <label> Your email [email* email] </label> <label> Subject [text* your-subject] </label> <label> Your message (optional) [textarea your-message] </label> [cf7-recordset id="cf7-recordset-285" type="user" attributes="email" logged="1"] [cf7-link-field recordset="cf7-recordset-285" field="email" value="email] [submit "Submit"]I thought ‘user_email’ data record would be supported, as by default is supported by Contact 7.
Still – the last testing example i’ve posted is using in-built WP’db data set field ’email’ – and not getting populated neither.
Can you support further, please?Hello @n381
Ok, I’ll try to describe it again. If you use
type="user"the plugin will read the user information (the information stored in the wp_users and wp_usermeta tables). In the wp_users table, the column for the users’ emails is nameduser_email. Furthermore, the attributelogged="1"forces the recordset field to read the information of the logged user. If the visitor is not logged, the recordset information will be empty.The form structure would be:
<label> Your name [text* your-name] </label> <label> Your email [email* email] </label> <label> Subject [text* your-subject] </label> <label> Your message (optional) [textarea your-message] </label> [cf7-recordset id="cf7-recordset-285" type="user" attributes="user_email" logged="1"] [cf7-link-field recordset="cf7-recordset-285" field="email" value="user_email] [submit "Submit"]For example, assuming you want to fill a select field with all users’ emails. The form structure would be:
<label> User emails [select emails-list] </label> [cf7-recordset id="cf7-recordset-285" type="user" attributes="user_email"] [cf7-link-field recordset="cf7-recordset-285" field="emails-list" text="user_email" value="user_email"] [submit "Submit"]Please, try it.
Best regards.
Hello, here are the snapshots after testing per provided instructions.
Form settings https://pasteboard.co/uL6Sk4Bgk7Bh.jpg Form page https://pasteboard.co/oOP7gU9DXmD0.jpg Form page dropdown users emails empty values https://pasteboard.co/OSYh3C4aoJYK.pngExcuse me I could not provide admin access for you to check, even as i’m really interested into your plugin concept that provides far extent integration than Dynamic text fields for C7, albeit with the latter’s option of parameter for default fields values my forms are working.
Will try again in the next couple of days if Data Source fields is working on the new WP install.Thank you, best regards
Hello @n381
Could you please contact us directly through the plugin website to check your database and form structure in detail?
https://cf7-datasource.dwbooster.com/contact-us
Best regards.
Hello again, to add an explanation aside of the omissions of quotes syntax(ending) and input fields names/call back function fields matching in the above example, it turns that after updating both Contact 7 and Data Source for Contact Form 7 to the newest releases, the plugin Data Source for CF7 is fully functioning.
Thank you very much.Excellent !!!!!
Thank you very much for letting me know that everything is working fine.
Best regards.
The topic ‘Support request no output’ is closed to new replies.