Credit Card Expiration Field

Caldera Forms Banner

Caldera Forms Credit Card Expiration Field Configuration

Caldera Forms credit card expiration fields are special fields design to work with credit card number fields for entering and validation credit card numbers.

This field type was added in Caldera Forms 1.5

To add a credit card expiration field, drag the New Field icon into the form layout editor where you want it to appear. This opens a modal that allows you to choose fields. Select the eCommerce section and then click on Credit Card Expiration. You must then give your field a name.

All other settings fields are optional and are very similar to the settings for a text field. It is recommended that once this field is added, you link it to a credit card number field, using the settings of the credit card number field.

 

Caldera Forms eCommerce Fields

Credit Card Expiration Field Magic Tags

Any credit card expiration field provides a magic tag named for its slug that provides the full value — month/year of the field. If you field’s slug is “card_exp” you can use the magic tag “%card_exp%.

Getting Credit Card Field Expiration Year or Month Separately

Using Caldera Forms Credit Card Expiration Field Magic TagsIn many cases, such as in the settings of a credit card payment processor, you may want the credit card expiration month and the credit card expiration year separately. Yo can add “:year” or “:month” to your magic tags for this. For example, if your field’s slug is “card_exp” you can use the magic tags “%card_exp:month%” and “%card_exp:year%”.