Welcome, Guest
Username: Password: Remember me

TOPIC: Issue with additional attribute condition when export and imported

Issue with additional attribute condition when export and imported 3 years 9 months ago #56493

  • LimeDude
  • LimeDude's Avatar
Hi,

Hope I have posted in the correct section.
Version 1.90+ Build 9642

I have a survey set up that uses tokens and an additional attribute field.
Quite a few of the questions use conditions where 'Token fields' and 'Constant' is used to display the question dependant on the user.
I have a survey instance that is used to build the questionnaire and a live instance where all the build is carried out but when I export from build and import into a live survey instance the conditional logic does not work.

I have found some similar entries that states the same/similar issue is resolved in an earlier version but I am getting the problem with Version 1.90+ Build 9642.

Hope someone can help.

bugs.limesurvey.org/view.php?id=3798&history=1
bugs.limesurvey.org/view.php?id=3940
Last Edit: 3 years 9 months ago by LimeDude.
The administrator has disabled public write access.

Re: Issue with additional attribute condition when export and imported 3 years 9 months ago #56598

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5426
  • Thank you received: 307
  • Karma: 252
Do you use the latest 1.90 version for both?

What happens with the conditions? Are they not ported at all or are they not working, correctly?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Issue with additional attribute condition when export and imported 3 years 9 months ago #56890

  • LimeDude
  • LimeDude's Avatar
Hi Mazi,

Exoprting and importing into the same installation/instance (Version 1.90+ Build 9642).
It seems that the conditions table does not get populated with the attibute based conditions.

I created a nasty SQL script that copied the attribute conditions from the original survey into the one I imported and then the attribute conditions worked in the survey.
The administrator has disabled public write access.

Re: Issue with additional attribute condition when export and imported 3 years 9 months ago #56899

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5426
  • Thank you received: 307
  • Karma: 252
To my knowledge importing question based conditions works fine at the latest 1.90 version.
Can you test if you have problems with both, question based AND token based conditions or if only the token based conditions fail?!

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Issue with additional attribute condition when export and imported 3 years 9 months ago #57398

  • badronald
  • badronald's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 48
  • Karma: 0
I created a new survey using LS 1.9. conditions work fine except when trying to use a value from a token attibute field, such as

Only show Q14 if
attribute_1 >= 2

The conditions in this case are not working and the questions are always shown.

I compared the source code for the page between LS 1.85 where this condition set-up works and LS 1.9 where it does not. At the beginning of the javascript section for conditional questions the section is missing from 1.9 Not sure if that matters but thought I would mention it.

function radio_unselect(radioObj)
{
var radioLength = radioObj.length;
for(var i = 0; i < radioLength; i++)
{
radioObj.checked = false;
}
}
Last Edit: 3 years 9 months ago by badronald. Reason: added more info
The administrator has disabled public write access.

Re: Issue with additional attribute condition when export and imported 3 years 9 months ago #57410

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5426
  • Thank you received: 307
  • Karma: 252
Can you test a different comparison opertor like "= '2'?

I think token attributes are stored as text so comparing a text value and a number may lead to unexpected results.
If so, a regular expression might do the trick.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.121 seconds
Donation Image