CSV Import Frontend - remove controls css

ontarget

Active Member
Hi
I have a site which requires several users to import csv data into a single list from the frontend.
It only takes one person to select "drop data" and remove everyone elses data - Ouch!
Here is a css solution added to your template.css file to remove the controls shown to users on the frontend:
  • Drop data
  • Overwrite
  • Format
  • Field delimiter
  • Tab delimiter
  • Text delimiter
CSS:
/*Fabrik Import Controls */
#jform_drop_data-lbl{display:none;}
#jform_drop_data{display:none;}
#jform_overwrite-lbl{display:none;}
#jform_overwrite{display:none;}
#jform_inPutFormat-lbl{display:none;}
#jform_inPutFormat{display:none;}
#jform_field_delimiter-lbl{display:none;}
#jform_field_delimiter{display:none;}
#jform_tabdelimited-lbl{display:none;}
#jform_tabdelimited{display:none;}
#jform_text_delimiter-lbl{display:none;}
#jform_text_delimiter{display:none;}

Hope you find this useful - if there is another method of blocking these controls via Fabrik backend via ACL that would be great to know.
Thanks
 
CSS (like JS) is never a means of security (everybody who knows can reset it) but yes, it helps to avoid unwanted accidents.
But CSV import is not simple anyway: the CSV file must match exactly
 
Thanks Troester
I agree css was not ideal - but it was quick and dirty!
A nice future dev would be ACL on the frontend import controls?
I have provided a csv template for my users to first download, modify then upload and the upload / import is only available to Special access
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top