Skip Navigation

URL parameter value is not set for the field inside a CRED form

Resolved

Reported for: Toolset Forms 1.8.8

Resolved in: Toolset CRED 1.9

Topic Tags: Toolset Forms

Symptoms

The following steps illustrate how this issue is replicated:

  • Your CRED form contains a field that features an urlparam attribute. For example, urlparam=’title_param’.
  • The CRED shortcode that loads your form, uses this urlparam attribute. For example:
    • [cred_field field='post_title' post='post' value='' urlparam='title_param']
  • The CRED form is inserted in a page and that page is visited by appending the URL parameter. For example:
    • http://www.my-site.com/sample-page/?title_param=my-value

The issue:

  • The related field in the CRED form should be populated with the value provided in the URL – “my-value“.
  • However, the field is instead always empty.

Workaround

This issue will be fixed in the next version of CRED.

In the meantime, the fix can be applied using this patch.

Download the patch, extract its contents and use the contained files to replace:

  • The translate_field_factory.php file, found in the cred-frontend-editor/application/controllers/ folder.

2 thought on URL parameter value is not set for the field inside a CRED form

  • That worked for one of my websites. My other webside doesn’t have an “application” folder under cred-frontend-editor…

Comments are closed