Skip Navigation

Can’t sort the relationship fields in Toolset forms

Resolved

Reported for: Toolset Forms 2.1.1.2

Resolved in: 2.3.2

Symptoms

There is an issue with sorting the relationship fields in Toolset forms.

It happens in the following scenario:

  • You have two custom post types created with Types and connected through a relationship also created by Types.
  • You create a form for creating new posts belonging to one of the two above-mentioned custom post types. The posts are connected through a field that is generated in the form.
  • The field for connecting posts is a rendered by a shortcode added to the form like the following:

[cred-relationship-role role="parent" orderby="id" order="DESC"]

The issue is that the orderby and order attributes have no effect over the generated select field on the front-end. Instead, the field is always ordered by date in ascending order.

Workaround

There is currently no workaround for this issue.

Our developers are aware of this and will fix it as soon as possible.

2 thought on Can't sort the relationship fields in Toolset forms

  • iner]

    Staff members
    [cred-relationship-role role="parent" orderby="title" order="ASC" author="$current"]

    Departments
    [cred-relationship-role role="child" orderby="title" order="ASC"]

    [cred-form-feedback]
    [cred-form-submit]
    [cred-form-cancel]
    [/cred-relationship-form-container]

    This used to work as of 2.2 but 2.3 does not allow me to save this code, or change it, instead switching me to the visual editor, and changing my markup and losing the orderby attribute. the top field continues to work.

  • Hi Sam,
    It seems that the issue you’ve mentioned is a bit different than the one this errata is describing.
    Can you post a new ticket in our support forum so that we can figure out the issue and handle it?

Comments are closed