Hello thedut

I already have Syncronized My Survey (On Limesurvey Site) with my Drupal Site.

I have a Content Type "Survey FCEX" and his Content Type for his answers "Answers Survey FCEX"".

So, I have one views with Content Type = "Survey FCEX"
I can not find the way or the field i have to add on the view, for my users sites (not admin) can add answers to this survey.

Field Title goes to the Survey edit (like an admin) What I have to do?

Thank you for your support.

Comments

thedut’s picture

Title: DRUPAL FIELD ON VIEWS - USER ACCESS TO ANSWER THE SURVEY » Create the link "add an answer" from views

hello arellani,

The simplest way to do it is to :

  1. start from the predefined LimeSurvey Sync views (desactivate by default), on admin/structure/views/view/surveys_and_associated_answers/edit.
  2. add a field
  3. filter : global
  4. global : custom text
  5. Text : tip Add a new answer
  6. on Rewrite results tab :
  7. tick Output this field as a link
  8. in 'Link path', tip : node/add/[type], [type] is the answers Content Type machine name.
  9. You will probably need to tick Replace spaces with dashes and select lowercase to transform the case
  10. Custom the view.

The main advantage of the surveys_and_associated_answers view is to set the relationship between the survey and its associated answers content type. Of course you can start from a fresh new view, creating again this relationship.

thedut’s picture

You fill find the right link going to node/add and looking for the text : "Answers Survey FCEX".

thedut’s picture

Assigned: arellani » Unassigned
Status: Active » Closed (works as designed)
arellani’s picture

Thank you It works Perfect!

jimbo4350’s picture

Issue summary: View changes

hello arellani,

The simplest way to do it is to :

start from the predefined LimeSurvey Sync views (desactivate by default), on admin/structure/views/view/surveys_and_associated_answers/edit.
add a field
filter : global
global : custom text
Text : tip Add a new answer
on Rewrite results tab :
tick Output this field as a link
in 'Link path', tip : node/add/[type], [type] is the answers Content Type machine name.
You will probably need to tick Replace spaces with dashes and select lowercase to transform the case
Custom the view.
The main advantage of the surveys_and_associated_answers view is to set the relationship between the survey and its associated answers content type. Of course you can start from a fresh new view, creating again this relationship.

This initially worked for me, then all of a sudden the "Add a new answer" link disappeared from the view. I cannot get it to appear. I have reinstalled drupal and limesurvey and I still have the same issue!

jimbo4350’s picture

Fixed it using "external path" with the relevant path.