Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Adding a new Profile DropDown ListAdding a new Profile DropDown List
Previous
 
Next
New Post
10/15/2018 9:37 AM
 

I am very new to the DNN world am trying to figure out how to add a new field to the user profile.  Within Site Settings/UserProfiles I have selected the Add field and selected AutoComplete.  This was the only option that sounded like it would be a drop down.  The issue is there does not seem to be anywhere to configure the data source for the field.  I also tried the List put got the same results.  How can I create a dropdown with a SQL table as the data source?

 
New Post
10/16/2018 2:39 AM
 
Perry,

first: welcome to DNN, I hope you have a great time with it.

You can use the "List" type to get a dropdown list.

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
10/16/2018 9:01 AM
 
Thanks for your response Michael.  I saw there was an Auto Complete option as well.  Do you have any idea if that would be a SQL based list or is there no way to create a profile field that is database driven?
 
New Post
10/17/2018 1:52 AM
 

Perry,

Inspecting a profile page with such an element reveals a bit of the secret:

<input name="dnn$ctr$EditUser$Profile$ProfileProperties$Test2$Test2" class="ui-autocomplete-input" id="dnn_ctr_EditUser_Profile_ProfileProperties_Test2_Test2" type="text" maxlength="50" value="" autocomplete="off" data-name="Test2" data-editor="AutoCompleteControl" data-pid="0">

This class is part of the jQuery UI, but I don't see a way to populate the values through the DNN interface. The only possibility seems to be to write some jQuery function and inject it on the profile page (you can use Will Strohl's Content Injection module for that - https://github.com/hismightiness/dnne...). For a documentation of the Autocomplete widget in jQuery UI see https://jqueryui.com/autocomplete/.

Happy DNNing!
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Adding a new Profile DropDown ListAdding a new Profile DropDown List


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out