Merge string and respid

Merging a string with the respid of the respondent to create a unquie ID which is targetable by a survey, email or reportal report.

Create a new DP rule and select the survey and add in a filter, the field we are populating will be “userid” so make sure this field is empty using the filter.

 

Column – you need to select both “respid” and “userid”

 

Action script node –

userid=”clm“+respid

clm can be anything you require.

This will out for example “clm145” for the 145th respid, and so on….

Target page, will just reference back the same survey from the source, no filte for the mapping

 

When the rule runs, if done correctly, any userid that is null will be populated with the choosen string and respid.