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
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.
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>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.
<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>
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.