Appnitro Software Forums » MachForm

way to style review and entries pages

(4 posts)

  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 3 months ago #
  2. 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.

    Posted 3 months 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 3 months ago #
  4. 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.

    Posted 2 months ago #

RSS feed for this topic

Reply

You must log in to post.