Hello!
I have a form that returns a list of records.
The records are displayed one after the other.
Each record has a comments section that the viewer can enter text into with an associated button (or link or whatever) that is supposed to updated the record with whatever has been entered into the Comments section.
I'm not sure what I'm supposed to do to pass the id and comments to my updateComments event?
Any suggestions?
I wrote a javascript that went along with each record so when you click the save button that copied the contents of the comment and the record id into an url that I tried calling chronoforms with using window.open but I couldnt get it to work right - I dont even know if this is the proper way to do it.
Hi CyborgPrime,
You can grab this from the row data when you place the comments box using PHP code, I'm not sure how you list the records ?
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
I guess what I am really trying to ask is:
1) How do I call an Event from a custom script? I read that you add the fields to the end of an url and use that to call the chronoform but for some reason that's not working for me. It works for my DELETE_RECORD event because I call the url from a custom link. In this case, I need to get the contents of a field AFTER it is edited and pass it to the form to update the record. Not sure how to call the chronoform using the URL I created for each record. If I use window.open(Url); It sends me back to the home page.
2) How do I pass values to that event?
Hi CyborgPrime,
You can run a JavaScript code on the click of the button to send the comments box data to another url where the data will be saved, this is done using AJAX.
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
i have all that - I guess the part Im not clear on is how to call the chronoforms page custom event I made from java script.
Hi CyborgPrime,
Any chronoform event can be called using a link similar to this one:
form_link&event=EVENT_NAME
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
hmm.. already did that - I guess there must be a typo in my code
I'll let you know if I ever figure it out.
Thanks!
You can post the code here and I will check it, it should be a few lines to make an AJAX call and include the comments data.
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.