Hi Team,
I wanted to create a list of zipcodes in webApp in Adobe campaign classic and these zip codes are provided for the selection in the web page rather than the customers providing wrong zip codes or in valid zip codes.
Kindly suggest and provide me the codes if you have.
Thanks,
Sachin
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @sachincs1991 ,
You can achieve this in 2 ways, either by creating enumeration for zipcode in classic and hardcoding the zipcode value in it, or hardcoding the zipcode value in HTML content in webapplication.
Eg:
Regards,
ParthaSarathy S
Hi @sachincs1991 ,
You can achieve this in 2 ways, either by creating enumeration for zipcode in classic and hardcoding the zipcode value in it, or hardcoding the zipcode value in HTML content in webapplication.
Eg:
Regards,
ParthaSarathy S
Hi @ParthaSarathy ,
Thank you very much for the reply.
This worked, but I am thinking still improvise it.
If I have 10000 zip codes it will be tough for them to do select and do so.
Since zip codes are more I want give some entry in the drop down field so if I type 601 in the textbox of drop down it should show all the zip codes which starts from 601 so that customers can easily select the zip codes from the drop down.
Kindly suggest or help me with the code.
Thanks,
Sachin
Views
Replies
Total Likes
Views
Replies
Total Likes
Hello @sachincs1991 ,
You can use Select 2 JS plugin to make the dropdowns searchable.
Here is the link to the documentation: https://select2.org/searching
Thank,
Manoj
Views
Replies
Total Likes
Hi @_Manoj_Kumar_ ,
I have implemented as below this is only helping to select in drop down.
I need to enter the text and help based in that or can we extract the zipcodes from the schema which is already having it.
<div class="infowidth"><select name="zipcode" id="zipcode" type="text" data-nl-bindto="xpath" data-nl-xpath="@zipCode" data-nl-label="ZipCode" data-nl-ismandatory="true" placeholder="*ZipCode">
<option value="60001">60001</option>
<option value="60002">60002</option>
<option value="60003">60003</option>
<option value="60004">60004</option>
</select></div>
Thanks,
Sachin
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi @sachincs1991,
Were you able to resolve this query or do you still need more help here? Do let us know.
Thanks!
Views
Replies
Total Likes
Views
Replies
Total Likes