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
  • marcomarenco's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
7 years 1 month ago #149269 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
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 month ago #149275 by tpartner
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
  • marcomarenco's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
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
Last edit: 7 years 1 month ago by marcomarenco.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 month ago #149283 by tpartner
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
  • marcomarenco's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
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
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 month ago #149287 by tpartner
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.

Lime-years ahead

Online-surveys for every purse and purpose