Jump to content

[SOLVED] retrieving a fieldset does not work fields->get(fieldsetName)


Recommended Posts

Posted (edited)

Hello friends of PW!

i want to check if a fieldset already exists. Using fields->get(fieldsetName) returns NULL. Using get for normal fields works well and return the field requested.

PW-Version is 3.0.255

Is there a way to check fieldsets?

Thank you for help

 

Edited by thei
added PW Version
  • thei changed the title to retrieving a fieldset does not work fields->get(fieldsetName)
Posted

it was due to a confusing situation:

the fieldset was created per API and the name contained a '-' (minus) which was translated silently to an underscore by PW

Afterwards the checks were done with the original name (containing the minus character)  😞

 

sorry 

  • thei changed the title to [SOLVED] retrieving a fieldset does not work fields->get(fieldsetName)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...