This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

How to remove HTML from excel column names


  1. matt960
    Member

    Hi,

    In order to customise the field labels and choice of some checkboxes I have on my form, I have entered some HTML (span tags) into the field properties inputs.

    When I export the entries as an excel file the raw HTML shows in the column names along with the field name. Is there a way to hide just the extra HTML tags i have put in when the excel file is exported?

    Thanks for any help..
    Matt

    Posted 15 years ago #
  2. redityo

    **revised**

    Hi Matt,

    Try to edit "export_entries.php" file and go around line 341, in there you will see this code :

    $worksheet->write(0, $i, $label,$format_bold);

    then replace with this one

    $worksheet->write(0, $i, strip_tags($label),$format_bold);

    MachForm Support

    Posted 15 years ago #
  3. matt960
    Member

    Thanks for the reply,
    It works perfectly, though I think you meant to say 'edit export_entries.php' ;-)

    I just got started with this app yesterday and would like to say thanks for the amazing support!
    Matt

    Posted 15 years ago #
  4. redityo

    Ups sorry.. I've put the wrong file name .. Yes it should "export-entries.php" and I've revise my code :) .

    Thank's Matt..


    MachForm Support

    Posted 15 years ago #

RSS feed for this topic

Reply