ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

CONVERTER MULTIPLIER DATA TO JSON

atanunu 13 Aug, 2017
Sir, Please how do I convert MULTIPLIER DATA (REPEATER AREA) in a FORM to JSON using CF shortcode and PHP?
GreyHead 13 Aug, 2017
Hi Atanunu,

I think that you can use a Custom Code action something like this:
<?php
$this->data['xxx'] = json_encode($this->data['xxx']);
?>
Bob
atanunu 14 Aug, 2017
I modified the question I asked earlier. Also, Please how do I convert the whole form data to JSON using php?
Max_admin 14 Aug, 2017
Hi Atanunu,

What are you trying to do exactly ?

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
atanunu 14 Aug, 2017
Thanks Max!

I am trying to:

  • TURN FORM DATA TO JSON

  • TURN DATA FROM REPEATER ACTION / AREA TO JSON


  • Using PHP with the sample code below:

    <?php
    header("Content-Type: application/json; charset=UTF-8");
    
    $returnData = $this->get("repeater_area31"); // Form Data or Repeater area data
    $json = $returnData;
    echo  json_encode($json);
    die;
    ?>
    GreyHead 15 Aug, 2017
    1 Likes
    Hi ataunu,

    One important step is to give your repeater inputs array names like SCHRE[_N_][subject] so that the data is in set of sub-arrays. Please see this FAQ for CFv5.

    Bob
    Max_admin 19 Aug, 2017
    Hi Atanunu,

    form data: $this->data

    And the repeater data should be a subset of the form data.

    Best regards,
    Max
    Max
    ChronoForms developer...
    Did you try ChronoMyAdmin for managing your Joomla database tables ?
    This topic is locked and no more replies can be posted.

    2Checkout.com

    2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com