- Posts: 43
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
autocomplete in admin survey for short text question
- marcomarenco
- Topic Author
- Offline
- Senior Member
Less
More
7 years 1 month ago #149269
by marcomarenco
autocomplete in admin survey for short text question was created by marcomarenco
hi,
in same way is it possible to use autocomplete in create/edit question for "short text" ?
it seems that is not possible to call the php script, i've the data in table.
thanks,
Marco
in same way is it possible to use autocomplete in create/edit question for "short text" ?
it seems that is not possible to call the php script, i've the data in table.
thanks,
Marco
The topic has been locked.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
7 years 1 month ago #149275
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic autocomplete in admin survey for short text question
See this section of the manual - "Insert a JavaScript file into a custom theme" -
manual.limesurvey.org/Custom_Admin_Theme...nto_a_custom_theme_2
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- marcomarenco
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 43
- Thank you received: 0
7 years 1 month ago - 7 years 1 month ago #149282
by marcomarenco
Replied by marcomarenco on topic autocomplete in admin survey for short text question
thanks for your quickly reply, i try to explain better my problem, in:
editQuestion_view.php (in limesurvey\application\views\admin\survey\Question),
i've added some code to use autocomplete for an inputbox
i've tried the script in a stand alone application and it runs; in limesurvey maybe there's a check if the file is a "limesurveyvfile" or not,
i've noted that my, in my request some code is added:
GET searchanagramletter.php?YII_CSRF_TOKEN=84ee15c94793409919f931a13e06f0c004d9ec20&term=abar
YII_CSRF_TO.KEN
thanks,
Marco
editQuestion_view.php (in limesurvey\application\views\admin\survey\Question),
i've added some code to use autocomplete for an inputbox
i've tried the script in a stand alone application and it runs; in limesurvey maybe there's a check if the file is a "limesurveyvfile" or not,
i've noted that my, in my request some code is added:
GET searchanagramletter.php?YII_CSRF_TOKEN=84ee15c94793409919f931a13e06f0c004d9ec20&term=abar
YII_CSRF_TO.KEN
thanks,
Marco
Attachments:
Last edit: 7 years 1 month ago by marcomarenco.
The topic has been locked.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
7 years 1 month ago #149283
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic autocomplete in admin survey for short text question
Yes, you keep on saying that in multiple posts but did you try the custom admin theme approach?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- marcomarenco
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 43
- Thank you received: 0
7 years 1 month ago #149286
by marcomarenco
Replied by marcomarenco on topic autocomplete in admin survey for short text question
yes, sorry for multiple post, i close the other one, and use this.
i'm trying now, but i'm not sure that fix the problem, because all the javascripts run, i've problem only when i call an external php script.
what do you think?
Marco
i'm trying now, but i'm not sure that fix the problem, because all the javascripts run, i've problem only when i call an external php script.
what do you think?
Marco
The topic has been locked.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
7 years 1 month ago #149287
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic autocomplete in admin survey for short text question
It may be failing due to same-origin policy - see here -
stackoverflow.com/questions/4613310/how-...ternal-url-in-jquery
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.