Your LimeSurvey version:
3.28.21+220726 Own server or LimeSurvey hosting: own Survey theme/template: modified vanilla
==================
I'm trying to edit a string being passed in the URL and then assign it to a short text answer. I can get the text I want in the TEXT of the question, but I can't figure out how to insert it into the default answer.
...so the Course from the URL is SOCI 1033 CIN5 Home and I want to remove the " Home" bit. I can display it the way I want in the text of the question by using {str_replace(' Home', '', Course.shown)}, but I can't figure out how to replace SOCI 1033 CIN5 Home with SOCI 1033 CIN5 as the value of the question called "Course".
you capture the course name in the (hidden) question (short text) "Course"
In the next question - where you want to display it - you set the default answer to {str_replace(' Home', '', Course)}
Here still not hidden to show.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless