Forums

Update Record with out Chrono Connectivity?

erict 29 Sep, 2009
I was wondering If it was possible to update a record with just using ChronoForms by establishing the following values in my form?:


<input type="hidden" name="cf_id" value="#exsisting_record_num#"  />
<input type="hidden" name="task" value="saverecord" />



I'm trying to start a user on a ChronoForm page, list a set of results, and allow them to select a record that will populate fields for update without leaving the page, and update that record.

- Eric
GreyHead 30 Sep, 2009
Hi Eric,

Yes this will work (you don't need the editrecord input). The Joomla Code that ChronoForms uses will update the DB record if the submitted data included an existing primary key value.

Bob

PS The project sounds like a ChronOConnectivity project to show a filtered list with edit links.
erict 30 Sep, 2009
I was hoping that was the case.

Normally it would be a CC solution but the client would like the ability to have the form and the list of relevant results on the same page all the time.

After some consideration it seemed to make the most sense to use a JS solution within a CF page to achieve the desired work flow.

Once again both helpful and informative, thank you Bob🙂

- Eric
This topic is locked and no more replies can be posted.