1. NOTICE: If you are using Fabrik and update to Joomla 3.10, you will need to update to Fabrik 3.10. And, if you are using Fabrik, do not upgrade to Joomla 4, we do not have a supported version ready for release. More information on a release date coming soon. Also, please note that Fabrik 3.10 will not install on any Joomla sites less than 3.8.
    Dismiss Notice

FileUpload or Calc Validation

Discussion in 'Community' started by bonghetti, Nov 17, 2021.

  1. bonghetti

    bonghetti Member

    Level: Community
    I have read on the forum, and also tried, that the validation on the fileupload field does not work correctly (moreover I use the file renaming code). I tried to use a calc field that changes the value based on whether there was an attachment and it works ... but also the validation on the calc field doesn't detect anything (I tried both notempty, isnumeric, isnot, etc ... but nothing). Any suggestions?
     
  2. bonghetti

    bonghetti Member

    Level: Community
    Alternatives? to validate fileupload?
     
  3. juuser

    juuser Well-Known Member

    Level: Community
    If you add php-validation and add:
    var_dump($data);
    exit;

    What output do you get in cases when file is added and when not?
     
  4. bonghetti

    bonghetti Member

    Level: Community
    Sorry, what are you referring to with add php-validation? Are you referring, in the calc field, to the PHP validation function? or other? Thanks
     
  5. juuser

    juuser Well-Known Member

    Level: Community
    I mean if you add php validation to fileuploaded element with the dump code above.
     

Share This Page