Okay
  Public Ticket #3773432
Calculated Fields Form
Open

Comments

  • Tieme started the conversation

    Hi,


    I am working on a new website where my visitors can fill in a form with calculations and the form will filter out in the wpdatatables.


    Plugins: WpDataTables & Calculated Fields Form


    I was planning to make the data table filterable with URL and use the fields from Calculated Fields Form in the url. Like: /?wdt_column_filter[0]=<%fieldname6%>

    I got some weird error code when trying this. Is there a way to solve this?

    Error code:

    Fatal error: Uncaught TypeError: preg_match_all(): Argument #2 ($subject) must be of type string, array given in /Users/tieme/Local Sites/wisman-techniek/app/public/wp-content/plugins/calculated-fields-form/inc/cpcff_auxiliary.inc.php:379
    Stack trace:
    #0 /Users/tieme/Local Sites/wisman-techniek/app/public/wp-content/plugins/calculated-fields-form/inc/cpcff_auxiliary.inc.php(379): preg_match_all('/<%([^%]+)%>/i', Array, NULL)
    #1 /Users/tieme/Local Sites/wisman-techniek/app/public/wp-content/plugins/calculated-fields-form/cp_calculatedfieldsf_pro.php(687): CPCFF_AUXILIARY::replace_params_into_url('http://wisman-t...', Array)
    #2 /Users/tieme/Local Sites/wisman-techniek/app/public/wp-includes/class-wp-hook.php(324): cp_calculated_fields_form_check_posted_data('')
    #3 /Users/tieme/Local Sites/wisman-techniek/app/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #4 /Users/tieme/Local Sites/wisman-techniek/app/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #5 /Users/tieme/Local Sites/wisman-techniek/app/public/wp-settings.php(704): do_action('init')
    #6 /Users/tieme/Local Sites/wisman-techniek/app/public/wp-config.php(103): require_once('/Users/tieme/Lo...')
    #7 /Users/tieme/Local Sites/wisman-techniek/app/public/wp-load.php(50): require_once('/Users/tieme/Lo...')
    #8 /Users/tieme/Local Sites/wisman-techniek/app/public/wp-blog-header.php(13): require_once('/Users/tieme/Lo...')
    #9 /Users/tieme/Local Sites/wisman-techniek/app/public/index.php(17): require('/Users/tieme/Lo...')
    #10 {main} thrown in /Users/tieme/Local Sites/wisman-techniek/app/public/wp-content/plugins/calculated-fields-form/inc/cpcff_auxiliary.inc.php on line 379

    Thanks in advance.


  • Tieme replied

    Hi there,


    Is there any information regarding my last question?


    Thanks in advance.

  • Tieme replied

    Hello,

    Does this question resonate well with you? Meanwhile, I have been waiting almost a week for an answer. If there are more questions or if you need more from me I would love to hear from you.

    Thanks in advance.

  • Tieme replied

    Can you at least reply that my question is under consideration?

  •   Miloš replied privately
  • Tieme replied

    Hi Milos,

    Thank you for your reply. 

    I create the table manually. I just want you to be able to filter the entered values that you calculate on a previous page in the wpdatatables. I wanted to achieve with <%fieldname6%> that the value of this fieldname is filtered in the corresponding column in the data table.

    There is no cell directly associated with this fieldname.

    If this is easier to do with another plugin this is also fine. I used calculated fields form because there you can link the thank-you page to the page where the table is and that you can forward the value via URL.

    Can I achieve this with 1 of the specified plugins?

    Note: The table always has default values. They are products where different sizes are displayed per column.