wuschel_lux
Member
Good morning,
I am struggling with renaming my files when activating AJAX.
Without AJAX my code is working properly and takes the JUSER_ID from the actual form
With the JUSER_ID, I do some DB queries to get a unique number, first - and last name. With the return I bild the filename:
unique number_first - and last name_10randChars.ext
When using AJAX I read in the forum that some but not all and the $formModel-> will not be available. But is there maybe an other way to get the ID value from the form?
Thanks again for your help
I am struggling with renaming my files when activating AJAX.
Without AJAX my code is working properly and takes the JUSER_ID from the actual form
PHP:
$myJuser = $formModel->getElementData('tablename___juser_id');
$myJuser = $myJuser[0];
unique number_first - and last name_10randChars.ext
When using AJAX I read in the forum that some but not all and the $formModel-> will not be available. But is there maybe an other way to get the ID value from the form?
Thanks again for your help