Givewp: Inconsistency between hooks depending on form display mode selection.

Created on 21 Aug 2017  路  6Comments  路  Source: impress-org/givewp

Issue Overview

I discovered this by dealing with Form Field Manager, but I am relatively certain the issue is with Give Core.

If you attach output to the same hook (give_payment_mode_top and give_payment_mode_bottom both exhibit this), it will display outside the hidden-before-click fields on modal, and inside the hidden-before-click fields on Reveal.

Expected Behavior

Fields/output on the modal should be hidden before click on a 'reveal' form, and fields/output visible pre-click should be visible pre-click for both modal and reveal.

Current Behavior

They are visible for modal before you click, but not visible for reveal before you click.

Steps to Reproduce (for bugs)


  1. Create a new form
  2. Select the "Modal" display under display options
  3. Add form fields to a form using Form Field manager
  4. Select "Above Payment options" as the location for the fields.
  5. Save and view the form. The custom fields will be visible before clicking the modal.
  6. Edit the form, change the display mode to "reveal"
  7. Save and view the form
  8. the fields will not be visible before the click.
  9. repeat, but also with "below payment options" in step 4.

Todos

  • [ ] Tests

Most helpful comment

@Benunc hold off writing docs for this for now as this is subject to change in 2.1 when we revamp a lot of how the form building process goes.

All 6 comments

I am writing some docs, and wondering that the preferred behavior is going to be once this is resolved. (don't want to rewrite the docs)

I personally think that the preferred behavior is everything inside the reveal/modal except for above/below all fields and above/below donation fields.

Here's current behavior for modal:
screen shot 2017-09-26 at 10 11 28 am

Here's Current behavior for reveal:
screen shot 2017-09-26 at 10 19 52 am

I think that the current behavior for "reveal" is correct, and propose that modal be changed.

My docs will wait on the decision.

Docs are still waiting on this distinction, for clarity.

docs are still waiting on the answer to this.

docs still waiting on this.

@Benunc hold off writing docs for this for now as this is subject to change in 2.1 when we revamp a lot of how the form building process goes.

Will be address with focus on rebuilding Form UI

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mathetos picture mathetos  路  4Comments

DevinWalker picture DevinWalker  路  4Comments

Benunc picture Benunc  路  3Comments

DevinWalker picture DevinWalker  路  3Comments

samsmith89 picture samsmith89  路  3Comments