Good Afternoon Everyone,
I’m a bit confused about how to correctly add Address 3 to the form.
Currently, the form uses calculated fields with the rw_SelectAddrLine function for the Bill To address lines:
Bill To Address Line 1
Bill To Address Line 2
Bill To Address Line 3
Bill To Address Line 4
Each line is using the same FUNCTION_SCRIPT(rw_SelectAddrLine1 …) logic pulling from:
Bill To Address Line 1 = FUNCTION_SCRIPT(rw_SelectAddrLine1""RM_Customer_MSTR_ADDR.Address 1RM_Customer_MSTR_ADDR.Address 2""""RM_Customer_MSTR_ADDR.CityRM_Customer_MSTR_ADDR.StateRM_Customer_MSTR_ADDR.ZipRM_Customer_MSTR.Country
Bill To Address Line 2 = FUNCTION_SCRIPT(rw_SelectAddrLine1""RM_Customer_MSTR_ADDR.Address 1RM_Customer_MSTR_ADDR.Address 2""""RM_Customer_MSTR_ADDR.CityRM_Customer_MSTR_ADDR.StateRM_Customer_MSTR_ADDR.ZipRM_Customer_MSTR.Country
Bill To Address Line 3 = FUNCTION_SCRIPT(rw_SelectAddrLine1""RM_Customer_MSTR_ADDR.Address 1RM_Customer_MSTR_ADDR.Address 2""""RM_Customer_MSTR_ADDR.CityRM_Customer_MSTR_ADDR.StateRM_Customer_MSTR_ADDR.ZipRM_Customer_MSTR.Country
Bill To Address Line 4 = FUNCTION_SCRIPT(rw_SelectAddrLine1""RM_Customer_MSTR_ADDR.Address 1RM_Customer_MSTR_ADDR.Address 2""""RM_Customer_MSTR_ADDR.CityRM_Customer_MSTR_ADDR.StateRM_Customer_MSTR_ADDR.ZipRM_Customer_MSTR.Country
Here’s what’s happening:
If the address card has a value in Address 1 and no value in Address 2, everything works correctly:
Address Line 1 = XXXXX
Address Line 2 = City, State, Zip
Address Line 3 = Country
However, if Address 2 has a value, the Country no longer prints:
Address Line 1 = XXXXX
Address Line 2 = YYYYYY
Address Line 3 = City, State, Zip
I’m not fully understanding how the rw_SelectAddrLine function determines which fields print on each line. I’ve searched online but am still unclear on the logic.
Our goal is for the form to display:
Address 1
Address 2 (if there is a value)
Address 3 (if there is a value)
City, State, Zip
Country
If anyone can help clarify how rw_SelectAddrLine works and how we can properly include Address 3, I would really appreciate it.
Thank you.