Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Remove default value for continue_button_title - [GIVE-145] #7153

Merged
merged 5 commits into from
Dec 20, 2023

Conversation

JoshuaHungDinh
Copy link
Contributor

@JoshuaHungDinh JoshuaHungDinh commented Dec 18, 2023

Resolves #7150 / GIVE-145

Description

This PR removes the static default value for continue_button_title in the shortcode args, so that form meta can be used as the default for legacy forms. We still require a default value for v3 forms, so one has been added to the BlockAttributes class.

Also I found a duplicate line for $formUrl in the BlockRenderController that I removed. It was an oversight while merging Feature: include shortcode & block control support for v3 forms #7082 and Feature: Embed Donation Form button #7080

Affects

Legacy Forms, shortcode, block

Visuals

Screen.Recording.2023-12-18.at.11.48.03.AM.mov

Testing Instructions

  • Create a legacy form template
  • Select reveal on form display options
  • Update Continue button
  • View form on frontend & confirm that the button label changes
  • Create a shortcode - without explicitly setting continue button
  • View form on frontend & confirm that the button label changes
  • Retest with a v3 form

Pre-review Checklist

  • Acceptance criteria satisfied and marked in related issue
  • Self Review of code and UX completed

@JoshuaHungDinh JoshuaHungDinh changed the base branch from develop to master December 18, 2023 03:05
@JoshuaHungDinh JoshuaHungDinh marked this pull request as ready for review December 18, 2023 03:51
Copy link
Contributor

@jonwaldstein jonwaldstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@rickalday rickalday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passed QA tests.

@jonwaldstein jonwaldstein merged commit 60f6a30 into master Dec 20, 2023
20 checks passed
@jonwaldstein jonwaldstein deleted the fix/Legacy-continue-button-label-GIVE-181 branch December 20, 2023 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Legacy form button not changing label
3 participants