System Naming of attachmnets

Hi ,

I would like to be able to put the text of the answer which was selected in a specific Single Choice question. For example, if I have a question (idx: 25) with answer options:

1.Central

2.South

3.East

4.West

5.North,

And I select West, I want “West” to appear next to “Customer_Name” on the attachment name.

function OnGetAttachmentName(inFilePath, inName, inQuestionAttachmentCount, inGlobalAttachmentCount)

{

var retVal = "Customer_Name -"+CurrQues+"-"+inQuestionAttachmentCount+".jpg";

return retVal;

}

When I script it as above, it pulls the index number of the question where the image was shot.

How do I do this?

 

Thanks and regards,

Thabo

 

----------------------------------------------------------------------------------------------------------------------------------------------------------

Hi Thabo,

If you replace the CurrQues in the function to be AnswerText(QRef(25)) i.e.:

var retVal = "Customer_Name-"+SelectedAnswerText(QRef(25))+"-"+inQuestionAttachmentCount+".jpg";

Please let me know that does what you need.

 

Best Regards,
Daniel.
Dooblo Customer Success

----------------------------------------------------------------------------------------------------------------------------------------------------------

Hi Daniel,

This worked, thank you.

Is it possible to label the file by bringing the “SelectedAnswerText” to the front of the file name, to make it possible to sort the files by selected answer text?

 

Thanks,

Thabo

 

----------------------------------------------------------------------------------------------------------------------------------------------------------

HI Thabo,

This is not possible. The subject id remains the prefix of every attachment.

 

Best Regards,
Daniel

Dooblo Customer Success

 

----------------------------------------------------------------------------------------------------------------------------------------------------------

Hi Daniel,

Thank you.

 

Thabo

0

Comments

0 comments

Please sign in to leave a comment.

Didn't find what you were looking for?

New post