S130 to replace blank space in a string
Hello -
Does the S130 tag recognize the blank space between words in a string?
Background: I am attempting to pass an email address as part of a URL to be written to a page with S334. The email address has a + in it which S334 seems to be interpreting as a URL encode blank space and not writing the + to the page as part of the address, so “guy+1@mymail.com” is being written as “guy 1@mymail.com”
I have tried various combinations of T tags but nothing seems to work as needed.
I was hoping dropping the S334 inside an E130 replaceall calculation would allow me to swap out the blank space with a + but 130 doesn't seem to recognize the blank space. Is this correct? I could have sworn I had done this type of thing with 130 before.
Comments
-
Hey there, Dan.
If you are encoding it with jQuery or manually, you can replace the + with a %2B in the URL and it should maintain the + when it outputs as long as you use the full URL and not a shortened version, e.g. you can't just have http://vateam.convio.net/site/Donation2?df_id=14120&set.Email=guy%2B1@mymail.com as this will load with a space. You will need to have everything else in the URL, e.g. http://vateam.convio.net/site/Donation2?df_id=14120&14120.donation=form1&mfc_pref=T&set.Email=guy%2B1@mymail.com.
However, if you want to wrap it with a T tag, you want to use a T1 tag. It would be something like this [[T1:https://secure2.convio.net/vateam/site/Donation2?df_id=14120&14120.donation=form1&mfc_pref=T&set.Email=guy+1@mymail.com]]. The T tag will encode it on the platform side when it outputs on a Luminate Online page or email.
I find the easiest option is to code it straight up with the %2B as a part of the link (this is a URL encoding resource where this %2B is found among the listing at https://www.w3schools.com/tags/ref_urlencode.ASP) that is output as https://secure2.convio.net/vateam/site/Donation2?df_id=14120&14120.donation=form1&mfc_pref=T&set.Email=guy%2B1@mymail.com …or use the non-secure version to reach it http://vateam.convio.net/site/Donation2?df_id=14120&14120.donation=form1&mfc_pref=T&set.Email=guy%2B1@mymail.com either works.
If you're interested in which field inputs can be pre-filled upon page load, here is some documentation on that: https://webfiles.blackbaud.com/files/support/helpfiles/luminate-online/help/luminateonline.html#../Subsystems/donation_management/Content/Concepts/Admin_Online_Giving_Management_DonationForms_HiddenInputs.html?Highlight="set.custom"
From this documentation link above, you can write URLs straight from an Email Campaign message with S1 S-Tags in the link to pull in things like name - [[S1:first_name]], email address - [[S1:primary_email]], phone, etc. Anything found in the biographic data on the constituent that will pre-populate upon arriving on the form without being logged in.
Further, you can even add custom fields to your donation form (using the “New” button in the left-hand window on step 3. Design Donor Screens > Edit Donation Form) to capture custom values like additional source values where you might be getting traffic from (e.g. Google Ads ID information through Google Grants or maybe Facebook ads) and you have already used the &s_src=… and &s_subsrc=… as a part of your link that are built-in source and subsource fields in your link and you need to add additional source tracking to your link, for instance for variations on your ads that you might be A/B testing to determine which version of your advertisement converts best.
However, if you are interested in the user being logged in so that any gift or form response/submission can be added to that constituent's record, you can just add &autologin=true to the end of your link to access any form on Luminate Online from an Email Campaign email message without the &set.Value=XXX as a part of the link (as long as the campaign is configured to allow autologin links) and it will do pretty much the same thing as adding a &set.Value=XXX to the URL when someone is logged out but clicking on a link to get to a donation form.
I hope you find this information helpful.
Thanks,
Will0 -
Hi Will -
Thank you for your reply. The URL won't be directing to a donation form and may not end up pointing back to LO at all. It is being generated in the PC as a custom link for each participant and will contain exact information about their registration in a given TR using a combination of the S1, S42, and S48 tags. I have worked out the troublesome + issue with JS already but will give the T tags another go.
Knowing that the URL may not be pointing to a LO page, my question really comes from a place of curiosity and rests firmly in the “for future reference” camp. Do you know if the 130 tag can swap out blank spaces in a string with the replaceall operator? Is there a special character used in the LO version of RPN for blanks that the 130 tag sees consistently? I have a feeling that it could be handled with a protracted 130 calculation - but am hoping for a simple solution that I realize may not exist.
Thanks again for your reply -
DK0 -
You could use a combination of T1 and T5, e.g.
[[T5:[[E130:"[[T1:foo bar]]" "+" "%2B" replaceall]]]]
This will give you foo+bar.
If you have a query parameter like &email=guy+1%40myemail.com, then
[[T5:[[E130:"[[T1:[[S334:email]]]]" "+" "%2B" replaceall]]]]
… will give you:
guy+1@myemail.com1 -
Looks like Noah beat me to the reply, but he is who I go to with many questions like this as well. I agree with his reply.
I hope you find it helpful, Dan.
Thanks,
Will0 -
Thanks Noah! If it were a snake it would have bit me!!
0 -
Thanks for your help, Will - DK
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 213 bbcon®
- 1.4K Blackbaud Altru®
- 403 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 656 Blackbaud Grantmaking™
- 577 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 939 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.6K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 241 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 794 Community News
- 2.9K Jobs Board
- 54 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)

