Pre-populating Form Fields not working

Created on 19 May 2022, over 2 years ago
Updated 2 February 2024, 10 months ago

Problem/Motivation

After update the module to the latest version, the default values placed on the field configuration are not pre-populating on the form output.

Apparently, the reason is this change on the code output https://git.drupalcode.org/project/formstack/-/commit/b701abf949f163b125...

According to the documentation (https://help.formstack.com/s/article/Pre-Populating-Form-Fields) Pre-Populating doesn't support embed forms, probably this metion is related to HTML embed.

Steps to reproduce

  • Create a field type Formstack form
  • Creat a new node and selecte on Formstack form to embed
  • Configure default values
  • Check on view node the if the form is embedded with pre-populating fields

Proposed resolution

Revert to use javascript embed method instead HTML following the Formstack recommendation: https://help.formstack.com/s/article/Linking-and-Embedding

It is highly recommended that you not attempt to use the full HTML of the form on your site unless you are an HTML expert. The JavaScript embed method above should be used by 99.9% of users.

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇧🇷Brazil igorbarato

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024