PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Make changes to: get_submitted_fields in common.php?

  1. I want to make changes to the table in get_submitted_fields in the common.php file but I hate to change a GF file directly (due to updates, etc.). Is there a way to add this function to my functions.php file and have my changes there?

    I want the table field and contents to be on one line to save space...

    Ron

    Posted 11 years ago on Wednesday March 6, 2013 | Permalink
  2. David Peralty

    Can you give more information about what you are trying to do? Maybe there might be a hook/filter you can use rather than trying to change common.php.

    Posted 11 years ago on Thursday March 7, 2013 | Permalink
  3. Sure and thanks for the reply.

    I want to change the table layout so that the field labels and content are on the same line. I have a very long form and want to conserve space when using {all_fields} in emails and in preview from http://gravitywiz.com/better-pre-submission-confirmation/

    Posted 11 years ago on Thursday March 7, 2013 | Permalink
  4. David Peralty

    You want to change the table layout of what? Also, we do have the option to change the position of field labels placement within the software. In the form settings, there is an option called label placement and it will be set to top by default but you can change that to left or right.

    Posted 11 years ago on Thursday March 7, 2013 | Permalink
  5. Sorry if this isn't clear.

    I'm using edited version of common.php > get_submitted_fields to show a preview of form before submittal. You can see the edited version here:

    http://ronrichardsonwebdesign.com/grav.php

    I would rather not have to edit common.php but perhaps use get_submitted_fields in my functions.php to accomplish this. Just not sure how to do that.

    Posted 11 years ago on Thursday March 7, 2013 | Permalink
  6. David Peralty

    There is a tutorial here called Better Pre-Submission Confirmation - http://gravitywiz.com/better-pre-submission-confirmation/ that might help you do what you need without changing core files.

    Posted 11 years ago on Thursday March 7, 2013 | Permalink
  7. That's funny... we're going around in circles. I'm using the better-pre-submission... plugin - as I mentioned prior to your reply. And that's using your file common.php to show the final preview table. It's that table that I want to style but don't want to edit the core file: common.php.

    Posted 11 years ago on Friday March 8, 2013 | Permalink