Table Of Contents
Description
This filter can be used to change the address format in the live summary
Parameters
class_names | array holds an array with every subfield. Each subfield has the class, sub id and a bool to indicate a line break or not
FormId | Int
FieldId | Int
Return
Array
Usage
/**
* Example to move the zip code before the city.
**/
gform.addFilter("gotrls_address_field_format", function(class_names , formId, fieldId) {
return class_names = [
["has_street", 1 , true],
["has_street2", 2 , true],
["has_zip", 5 , false],
["has_city", 3 , true],
["has_state", 4 , false],
["has_country", 6 , false],
];
});
