Welcome, Guest
Username: Password: Remember me

TOPIC: ask for a token and another field for login

ask for a token and another field for login 2 years 9 months ago #69532

  • setup
  • setup's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Hi,

i'm newbiee and i'm trying with this great limesurvey, so this is my first question in this forum, so don't be bad with me if another one has been asking for the same, i¡ve been searching and didn't fins the answer :)

Can i do that the system ask for the token and for another field for example the name or the passport number to get in and complete the survey?

i only find the way to do with the password only

thanks in advance
The administrator has disabled public write access.

Re: ask for a token and another field for login 2 years 9 months ago #69550

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5324
  • Thank you received: 294
  • Karma: 249
There are several solution:

1. You can use the passport number as token.

2. You can use tokens, add name and passport number as additional token attributes and then ask for name and passport number within a survey. You can then use conditions to only show the following questions if Q1=attribute_1 (from token table) AND Q2=attribute_2.

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.
The following user(s) said Thank You: setup

Re: ask for a token and another field for login 2 years 9 months ago #69560

  • setup
  • setup's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Thanks a lot Mazi, for your quickly reply, but i don't know how...

If i go to the address
myserver.com/limesurvey/admin/admin.php?...anagetokenattributes
here i've added a new atribute which i called "passport" and limesurvey tag with "attribute_1".

If i go to the url:
/limesurvey/admin/admin.php?action=tokens&sid=65944&subaction=browse
i see the users and i can fill the new atribute..no problem

BUT i don't know how/where i can this new attribute with the already exist token to login page

Thanks again
The administrator has disabled public write access.

Re: ask for a token and another field for login 2 years 9 months ago #69562

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5324
  • Thank you received: 294
  • Karma: 249
You can't ask for the attribute data at the login page. The login page always asks for the token only.

If you set your survey to be NON anonymous, you can ask for the additional data within the survey and then uuse conditions to check if the data entered (e. gl. name and passport ID) matches the data at the additional attributes of the current user. Also see docs.limesurvey.org/tiki-index.php#Suppo..._Types_of_conditions

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.
The following user(s) said Thank You: setup

Re: ask for a token and another field for login 2 years 9 months ago #69563

  • setup
  • setup's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Hi Mazi,

My surveys is NON anonymous, but how i edit the login page? i didn't find in the GUI or template editor, must i edit manually the file? which name?

i understand that after this modify, then i must use conditions to check the data

many,many thanks
The administrator has disabled public write access.

Re: ask for a token and another field for login 2 years 9 months ago #69564

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5324
  • Thank you received: 294
  • Karma: 249
There is no need to edit any files. Please read my above post carefully.

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: ask for a token and another field for login 2 years 9 months ago #69566

  • setup
  • setup's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Mazi wrote:
You can't ask for the attribute data at the login page.

Sorry :(
i confuse can't for can..
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.117 seconds
Donation Image