pods icon indicating copy to clipboard operation
pods copied to clipboard

Support a json string for field config

Open JoryHogeveen opened this issue 2 years ago • 4 comments

Description

This PR allows a JSON string to be passed as a field configuration array for Pods Forms.

Related GitHub issue(s)

Fixes #6435

Testing instructions

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See '....'

Screenshots / screencast

Changelog text for these changes

  • Support JSON as field configuration strings for the [pods_form] shortcode.

PR checklist

JoryHogeveen avatar Feb 03 '22 14:02 JoryHogeveen

Looks good, let's be sure to set a changelog text entry in this PR description before merging

sc0ttkclark avatar Feb 07 '22 02:02 sc0ttkclark

@sc0ttkclark Done!

JoryHogeveen avatar Feb 14 '22 08:02 JoryHogeveen

This looks good but in practice, don't we have to contend with WP shortcodes handling of double quotes etc that JSON would be using?

sc0ttkclark avatar Feb 17 '22 21:02 sc0ttkclark

Hi @sc0ttkclark Good point, will need to be tested

JoryHogeveen avatar Feb 28 '22 17:02 JoryHogeveen