hi,
in edit action i load form created with cf v5 using your tutorial...
if i want to modify an image from form it don't work. in cf i have also put into "on submit" area "file upload" before "connection action" , but it don't work at the same...someone can help me please?
thank's
Please make a form copy, remove the "connection action" then test the form, make sure the upload works in this case.
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Ok,
mod[foto] will not work as a file name, please try
mod.foto instead, if this doesn't work then you will need to name your upload field "foto", and use that for upload, then use a custom code action after the upload to copy the field name value under mod[foto]:
<?php
$form->data["mod"]["foto"] = $form->data["foto"];
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
There is no need to delete everything, this would not solve the issue!
Why did you reverse the code order ? please use my code in a custom code action under the files upload and before the connection action, if it doesn't work then please add a debugger action after the custom code and delete the "connection action" for testing, send me the debug report!
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
hi,
i made the changes has you told me...here is the debug
i reversed your code and put it before "files upload" (after i've tried your code) because i've thougth that the form "take " mod[foto] and file upload "foto"...
thanks for all.
Did you change the file field name to "foto" only instead of "mod[foto]" ? this should be done in the field settings and the upload action settings!
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
great! now works.
thank's so much, max.
hi max, i've another problem....
this is an edit form where the users can change the fields value in the record but if they change one or some fields, when submit the field "foto" disappear. into db the field "foto" take an empty value....how can i do?
thank's for all.
Before the "Connection action" in the "submit" event, you need to unset the "foto" field, or the connection thinks that you want to change it to an empty value, just drag a "custom code" action above the "connection action" and use this code:
<?php
if(empty($form->data["Model"]["foto"])){
unset($form->data["Model"]["foto"]);
}
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
great!!! thank you very much, max.