I have been using Webform with Conditions for a year or more and the Conditions work fine on small forms. Indeed I have several working on other forms live on the site at the moment and these continue to work for Administrator and Authenticated Users alike.

Yet I have a much larger Form that is essentially a similar Form with more of the same as the ones that work, which works fine in development for the Administrator, but none of the Conditionals work for Authenticated Users.

I have already tried modifying the conditionals and even deleting and recreating the Conditional Rules without and difference.

I then deleted all the fields in the Webform and all the Conditionals and re-created them all afresh. This took 4-5 hours again without any success. I now seem to have exhausted my testing regime.

This is weird because it works correctly for Administrator but not Authenticated Users, so it leads me to believe that there is a limit somewhere in the code that limits the extent of a large number of Conditionals for Authenticated Users, but not Administrators?

Why would this be the case?

Comments

cebab54 created an issue. See original summary.

cebab54’s picture

I have managed to identify the issue.

I have a hidden field (say here 'todays_date') that simply sets the date to 'TODAY' and the range of dates is limited similarly to "TODAY"

The reason that I need to set this date as a field is that I cannot see a way of Conditionally testing Today's date to a pre-defined date (in this case "01.07.2016") when a particular COMMERCE PRODUCT opportunity on the form expires.

Thus I use a conditional to test whether:

IF 'today's_date' "is before" "01.07.2016"
THEN a particular COMMERCE FIELD 'Isn't shown'
THEN a MARKUP Message is 'Shown'

This works in test and when logged in as the Administrator and all other Conditions work as expected and designed, and indeed the Webform saves successfully. BUT for Authenticated Users, if this Conditional Rule is in place the other Rules in nearly all cases fail for the Authenticated user (But work for the Administrator). As soon as this rule is removed the Form works as expected for Authenticated Users.

cebab54’s picture

By the way I forgot to say that I am in the UK and the Drupal installation is set up to use a Day Month Year calendar format for the date

DanChadwick’s picture

Title: Conditionals works as expected for Administrator but none work for Authenticated Users » Conditional test for TODAY.
Category: Bug report » Feature request
Priority: Critical » Normal