Expand my Community achievements bar.

SOLVED

Drop Down on Landing Page in Adobe Campaign Standard

Avatar

Level 2

Hi Campaign Folks,

I need to understand how to use a field as a Dropdown(Consider an example Country having 20+ enumerations stored in the Schema) on a Landing Page in Adobe Campaign Standard.

I am trying to map the fields, but the predefined values are not populating as a dropdown, neither I have an option to change the HTML Type of the field to something close to dropdown.

It's pretty easy in Adobe Campaign Classic, use a combo box, select the field, in field properties click on the option Initialize  the list of values in database and the job was done.

Can you help me how that is done in ACS and any response on this would be highly appreciated.

1 Accepted Solution

Avatar

Correct answer by
Level 6

Hi,

If it's any use please see below the code that we use for our country drop down list. I have removed the majority of the options for this example, but we basically have an option for each available country that maps using the country code.

View solution in original post

16 Replies

Avatar

Correct answer by
Level 6

Hi,

If it's any use please see below the code that we use for our country drop down list. I have removed the majority of the options for this example, but we basically have an option for each available country that maps using the country code.

Avatar

Level 2

Hi

I have created a profile acquisition landing page with this kind of dropdown list option and one checkbox for unsubscription. But i have kept the drop down list as non-mandatory field, but still when i am opting only checkbox, it is landing me to the error page instead of confirmation page.

Can you please help me out?

Regards

Bableen

Avatar

Level 6

Hi Bableen,

Does it work correctly if you select a country, then tick the checkbox and submit?

Avatar

Level 2

Hi

Yes , It is working only when we are selecting the drop down list . But i want that without seelcting the list also it will submit the response.

Avatar

Level 2

1729369_pastedImage_0.png

if i want that only unsubscribe option gets selected and it lands on the confirmation page .what would be the appropriate approach ?

Avatar

Level 6

Can you provide a code snippet of the drop down field?

Avatar

Level 2

<select class="stacked required nl-dce-done" type="cusInterest" id="interest" name="interest" data-nl-ismandatory="false" data-nl-bindto="xpath" data-nl-checkboxbehavior="subscription" data-nl-xpath="/context/profile/cusInterest" data-nl-label="cusInterest" data-nl-type="string" 0px="" 8px="" position:="" static="" width:="" 448px="" left:="" top:="" background-color:="" fafafa="" background-position:="" left="" top="" border:="" solid="" eeeeee="" height:="" 40px="" background-repeat:="" repeat="">

<option value="Weekly_contact">Weekly</option>

<option value="Monthly_contact">Monthly</option>

<option value="Quaterly_contact">Quaterly</option>

</select>

Avatar

Level 6

Try adding an additional blank option. I suspect it's struggling with passing no value if you don't select an option.

Add the following above the other options:

<option value="" selected="selected"></option>

*You also need to clean up the mark up and add the style tag back in. All of the following is rendered useless:

0px="" 8px="" position:="" static="" width:="" 448px="" left:="" top:="" background-color:="" fafafa="" background-position:="" left="" top="" border:="" solid="" eeeeee="" height:="" 40px="" background-repeat:="" repeat=""

Avatar

Level 2

I have added the blank option as you told me. So the following result is showing :

1729493_pastedImage_0.png

Avatar

Level 6

On the custom field that you have created, can you confirm if the default value is set to 'No default value'?

Avatar

Level 2

yes, it is set to 'No default value'.

1729494_pastedImage_0.png

Avatar

Level 6

Are you testing this with a test profile or a live profile?

If the former, have you also added this extension to the test profile schema?

Avatar

Level 2

I am testing this on a live profile.

And according to you is it possible that without selecting any one field in profile acquisition landing page, it will work properly?

Avatar

Level 6

Yes it should be possible. We use the same functionality for our country field on a profile acquisition landing page.

When a user chooses to unsubscribe, what is the next step? Does it link to the 'next page' or to an alternative unsubscription landing page?

Avatar

Level 2

we are redirecting it to the next page once the user chooses to unsubscribe.