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!

Passing data from CCV6 to CFV6

fasenderos 14 May, 2020
Hi I have CCV6 list of products with name, description and price columns.
In each table cell I create a view with a simple 'div' that on doubleclick event it become an input field. So essentially 1 view for each columns

view
<div id="product_name">{var:product_list.row.Info.product_name}</div>
<script type="text/javascript">
jQuery(document).ready(function ($) {
let id = "product_name",
itemId = 2,
required = true,
errorMessage = "Product name is required",
inputSize = 20,
inputType = "text";

addListener(id, itemId, required, errorMessage, inputSize, inputType);
});
</script>
The addListener function simply had 2 event (dblclick and blur) that switch the div in input and viceversa and performe an ajax call to save data to db.

Since now I have 1 view for each columns, because I don't find another way to create a single 'dynamic' view, I would like to transform these views into a single CFV6 Form, so I need a way to passing some params with the {chronoform:form-alias} notation, any suggestions?
Thanks in advanced.
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