SmartCode allows you to embed the Omnilert user sign-up and login forms into your organization's website. Embedding the forms into your own website provides a custom, branded experience for your subscribers.
A typical, unstyled SmartCode sign-up form might look like this:
The default form shown here is unstyled. However, the style can be adjusted with CSS to change the fonts and colors as desired.
CSS adjustments change the look of the form, but what if you desire to change the actual form itself? To do that, you'll use SmartCode Extensions.
Of course, you'd also want to include more info (branding, logos, instructions, etc.) around the form to help it blend with your brand and style.
What are SmartCode Extensions?
SmartCode Extensions are commands added to the stock SmartCode that change the behavior of the script, adjusting the form itself in the process.
Simply add the appropriate SmartCode extension to the end of your SmartCode's URL to change the form's behavior.
Looking at the sample code below, an extension would get added right before the closing quotes (") of the script URL.
Let's try an example...
The default sign-up form shows a field for text messaging (SMS). What if I wanted that sign-up form to show Email, too? I would add the extension "&mod=6", which modifies the form template to include an email field in the form.
(Note: It's OK to put each extension on its own line in the code for clarity. )
The resulting form has an added field to collect the new user's email address when signing up.
Other SmartCode Extensions
Some of the other popular SmartCode extensions available include:
|&mod=6||Sign-up Form shows both SMS and Email|
|&mod=0||Sign-up Form shows no devices, just creates the user. (The user would then add devices inside the account.|
|&mod=1||Sign up form shows SMS only. (Removed the "Click here for email" link.|
|&username=variable||Inserts text as the username for the user. (Replace "variable" with the text, presumably using a variable from your CMS.)|
|&target=||Change the target for the web form to a specific window or frame. For example &target=_blank will open the form in a new window.|
|&expdays=||Override the default user expiration date with a # of days from current date. For example, if you wish new users to expire in one year from sign up, use &expdays=365|
|&username_title=||Replace the label for the "username" field. For example, if I wanted to label the username as "Campus Email", I'd use &username_title=Campus+Email (Use + for spaces in the label name.)|
Looking for more?
There are many more SmartCode Extensions available in the Omnilert administrator's manual, available for download from the Help page in the Omnilert admin portal.
If you're looking to adjust the form and can't find what you need, let us know at firstname.lastname@example.org