Split Function for QR code string

Hi,

As per my business requirement QR code format of person is

‘First Name’|‘Last Name’|‘Person ID’|‘Gender’ (All separated by pipe sign)

Now in the form after scanning QR code I need to show person ID in another
textbox. How can I do this?

regards,
Vipin Gupta

Hi Vipin,

The latest version of CommCare (2.33.0, currenly on the Google Play Store)
supports the substring-before and substring-after expressions as
outlined in this doc:

https://confluence.dimagi.com/display/commcarepublic/CommCare+Functions#CommCareFunctions-substring-before

these can be used to split out the data you have outlined.

-Clayton

··· On Tue, Feb 7, 2017 at 2:14 PM, Vipin Gupta wrote:

Hi,

As per my business requirement QR code format of person is

‘First Name’|‘Last Name’|‘Person ID’|‘Gender’ (All separated by pipe sign)

Now in the form after scanning QR code I need to show person ID in another
textbox. How can I do this?

regards,
Vipin Gupta


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.