Survery123 Connect 3.13
I have a text field (RollCallNbr, row17) in the following format xx-xxxx. The first 2 characters represent the year. I need to extract those 2 characters, convert them into 4 characters for year (RollCallYear, row 18), and use the new year field as part of a concatenated URL (RollCallURL, row 19).
For example:
A roll call number can be 22-0501, the roll call year would be 2022 and the roll call URL would be https://councildocs.dsm.city/rollcalls/2022/22-0501.pdf
I'm attaching the XLS form.
Solved! Go to Solution.
Sounds like you should be able to use the substr() function to extract the first two digits. Here's how I would go about it.
Hope that works for you!
Sounds like you should be able to use the substr() function to extract the first two digits. Here's how I would go about it.
Hope that works for you!
Thanks Katherine!
That worked, I only had to make a minor change in step 1, substr(${RollCallNbr},0,2)
Ah yes, I couldn't remember if the indexes started at 0 or 1 with Survey123. I updated my original response.
Glad it worked! 🙂