Hi Shawn,I attached my RepeatableEditorGrid.js that does the handling of repeatable fields within a editable grid. The most import function is the getValues method that returns the values that have been set. It also sets the 'count' field with the overall number of values. All that is the send to the backend as AJAX request (not part of that script).
Greets, Mario Minati Shawn Moughtin schrieb:
I have my problem figured out, but I suspect it was a dirty way to do it. I used get_all_elements and get_element a few times to get down to the element I needed and then used regex to grab the name from it. I'm sure there is an easy, obvious way, but I am not a good programmer.I would still like to see your client side javascript if you are willing to send it to me, Mario.Thank you for your help.Sure but I still don't get which side. Client side javascript or backend side perl?Woudl you be able to let me see your code for handling new rows?On the backend side the perl script should have access to the complete nested name, as formfu uses itself nested_name for building the forms.Did you call process? Greets, Mario Minati_______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
RepeatableEditorGrid.js
Description: application/javascript
_______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu