Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Using date entered by user

  • stuttgarter
  • stuttgarter's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago #91811 by stuttgarter
Using date entered by user was created by stuttgarter
I am trying to create question group as follows:

q1(dropdown): Class(C1,C2,C3)

q2(radio): Teacher(T1, T2, T3)

q3 (Date):

q4(textDisplay): UID is {q1}{q2}{q3} --> output is : C1T301.01.2013

I am trying to remove (.) from date and tried a couple of tricks (strReplace, and trim )but is not working.

Any suggestions would be appreciated.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 years 2 months ago #91824 by tpartner
Replied by tpartner on topic Using date entered by user
This appears to be a bug.

Using this, I can remove the first instance of "." but the second instance remains.
Code:
str_replace(".", "", q3)

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