How do I get the 5 digit zip code

Options

I would like to insert the users 5 digit zip code instead of the 9 digit. Is there a way to get at it or a sub string function with the S Tags?

Tagged:

Comments

  • ] will render the full 9 digit zip if present. If only the 5 digit zip is present, only the 5 digits will be shown. At this time, there is not a way to pull out just the 5 digit zip.

  • I recieved an answer from support which utilizes the substring function:

    (Replace curly brackets with square brackets. It is shown here with curly brackets because system keeps displaying them wrong.)

    {{ E130: {{S1:home_zip}} 0 5 substring}}

    It is simple using the substring function found in most programming langauges.

    {{E130:<font color="#008000">&lt;value&gt; &lt;beginIndex&gt; &lt;endIndex&gt;</font>substring}}

    beginIndex - the beginning index, inclusive.

    endIndex - the ending index, exclusive.

Categories