Skip to main content

Assigning Value To Profile Attributes

Updated over a year ago

Text type profile attribute

--To assign value to a text type profile attribute
assignProfileAttribute("Text_Profile_Attr","Hello World")

Numeric type profile attribute​

--To assign value to a numeric type profile attribute
assignProfileAttribute("Numeric_Profile_Attr",3.6)

Single choice profile attribute

--To assign value to a single choice type profile attribute
--Syntax assignProfileAttribute("Attribute name", {<choice_code>})
assignProfileAttribute("Single_Choice_Profile_Attr", {1})

Multiple choice profile attribute

--To assign value to a multiple choice type profile attribute
​-- Syntax assignProfileAttribute("Attribute name", {<choice_code>,<choice_code>})
assignProfileAttribute("Multiple_Choice_Profile_Attr", {1,3})

Did this answer your question?