Jump to content

Using "show this field only if", no values are stored!


horst
 Share

Recommended Posts

Hi,

I have setup a new blank site with PW 2.6.0 stable version. :)

I have created a template that has two fields, the Title and a PageTable.

The PageTable 's template contains besides the title a single Pagefield with radios plus three other fields (text or integer) that should only be shown if the right option from the Pagefield is selected. This works fine and as expected!

But the values entered into the fields do not get stored in the DB!

If I strip the showOnlyIf condition, the values get stored as expected!

With the SHowOnlyIf condition, the data isn't stored when opening the page from the PageTable-field in a modal window,

nor when selecting the page from the pagetree and open it directly for editing.  ??

Is this expected behave or do I miss something?

Edited by horst
edited subject
Link to comment
Share on other sites

Played with your siteprofile but I couldn't spot anything. I can confirm that the issue exists. If I remove the ShowOnlyIf condition then the min-max-step values are saved properly. Putting back ShowOnlyIf and re-saving the page doesn't remove previous min-max-step values, so it seems that saving the page completely ignores these fields.

POST parameters contains all the values though.

post-3156-0-22724200-1431196395_thumb.pn

  • Like 1
Link to comment
Share on other sites

Try using this instead of "fua_fe_item_antwort.name=fua-form-slider"

fua_fe_item_antwort=1023

Seems to work here but don't ask me why :)

(trial and error)

  • Like 1
Link to comment
Share on other sites

Hey,

this works here too. But it isn't the best solution because hardcoded page-ids isn't practical. I need to export / import that at some point to another site and need to use generic properties like name. I will file an issue with this, at least I'm interested why it works with id but not with subfield.name.

But also nice to have it working for a first tests here. ^-^

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...