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

way to style review and entries pages


  1. bsimpson
    Member

    So I got the form finished and good to go but the client was hoping to have the review page (just after form submssion) and the admin/view entry function to resemble the form itself.
    I would imagine it would require hacking into view_entry.php, but i am not sure the best way to go about this.
    Any help would be appreciated.

    Posted 16 years ago #
  2. yuniar

    I'm afraid it won't be easy to make the review page/view entry function to resemble the form itself. It would require a lot of customization.

    At this moment, the only possible way to change the styling of those pages (by styling I mean changing colors, font size, margin, etc -- not changing the data structure) is by modifying the CSS.


    MachForm Founder

    Posted 16 years ago #
  3. bsimpson
    Member

    well the review page already reads the forms css styles. I was hoping it would be something like "where form id ="1" then ...etc? similar to some other tweaks people have done.

    I dont mind if it takes time, its the method im unsure about.
    I was really hoping there was a way I could have it reprint the li / span stuff that it uses to make the form and just insert the inputted values

    Posted 16 years ago #
  4. yuniar

    Ok, if you don't mind with the amount of work, I'll give you some pointers.

    On the review page (confirm.php) display_form_review() function is being used to print the entry. That function simply list the entry in a tabular format.

    You will need to change the body of that function to print the entry exactly as the form.

    The easiest way to learn about the function is by looking into edit_entry.php file.
    That file display the form with the entry being populated into each field.

    You need to look into display_integrated_form() function which being used there.

    Next, if you dig into that function, you'll find smaller functions to diplay all type of form fields.

    I suppose you could change the behaviour of those smaller functions (display_text, display_date, display_name, etc) to just display the entry value, without the input box.

    I must say that this would require a lot of work.


    MachForm Founder

    Posted 16 years ago #
  5. zeo
    Member

    My "review your entry" text is slightly cut-off in my form. The CSS seems to apply only to the review table underneath the title. Where can I add a margin to the review titles?

    Posted 11 years ago #
  6. yuniar

    Can you let me know the URL to your form please? I'll check it.
    Or you can send the URL via email: customer.service [at] appnitro.com


    MachForm Founder

    Posted 11 years ago #

RSS feed for this topic

Reply