43

Custom Fields

1) Support for Admin-Defined Custom Fields in DAP

In DAP 4.2, we have added the support for admin defined custom-fields. You can define your own custom fields in DAP admin panel, accept/store the custom fields via DAP Free Signup/Registration form and it can be viewed/managed in the DAP admin panel.

We have also added the ability to allow the admins to refer to the custom field values via merge tags within DAP email messages (auto-responder/broadcast).

Here’s a screenshot of the  DAP admin panel => Users => Custom Fields page.

(Click to enlarge)

Here’s the steps to define your own ‘custom’ field in DAP admin panel => Users => Custom Fields page.

Step 1: Database Field Name

Define the fieldname. DAP will use the name defined here to manage this field. The database field name is also used within the dap direct signup form/html so when the user’s enter a value for the field during sign-up, DAP will store it in the right database field.

If you want to accept any custom field via the DAP direct signup form, then use the database field name defined here as the  field name in the direct signup HTML code generated from DAP products page.
Ex –

<tr>
<td>Tax ID:</td>
<td>
<input type=”text” name=”custom_tax” size=”10″></td>
</tr>
<tr>

Step 2: Label (will appear on User-Facing Pages)

The Label will appear on the user’s profile page. The database field name is only for internal use… the label is what the user’s will see.

Screenshot of user profile page with sample custom fields – Social Security and Tax ID.

Here the label names are Social Security and Tax ID.

(Click to enlarge)


Step 3: Description

Just for Admin User to describe the custom fields. Not displayed to the user.

Step 4: Show Field Only To Admin

NOTE: If you want the users to see and update the custom field, set ‘Show Field Only To Admin’ to ‘N’.

If this is set to “Y”, then only admin will see this field in the DAP admin -> manage users page (when you click on the user’s name).

2) Using Custom Fields in Signup Form

Say you want to include a field called “Tax Id” in your Free Signup Form that you generated in DAP Products page.

So first define a custom field with the database field name tax_id in the Custom Fields page in DAP Admin (as shown above).

Here’s the default free signup form code generated from dap products page (if your form code looks different, see the last section at the end of this post).

<div id=”stylized” class=”dap_direct_signup_form”>
<form id=”dap_direct_signup” name=”dap_direct_signup” method=”post” action=”http://techizens.com/dap/signup_submit.php”>
<label>First Name</label>
<input type=”text” name=”first_name” id=”first_name” />
<label>Email</label>
<input type=”text” name=”email” id=”email” />
<button type=”submit”>Sign Up</button>
<input type=”hidden” name=”productId” value=”1″ />
<input type=”hidden” name=”redirect” value=”http://yoursite.com/login/?msg=SUCCESS_CREATION” />
</form>
</div>

Just add this to the signup form code:

<label>Tax Id</label>
<input type=”text” name=”custom_tax_id” id=”custom_tax_id” />

So basically, you add the word ‘custom_‘ in front of the custom field’s database field name. So if the database field name is “tax_id“, then in the form, it becomes custom_tax_id (as you see above)

So your final free signup form will look like this:

<div id=”stylized” class=”dap_direct_signup_form”>
<form id=”dap_direct_signup” name=”dap_direct_signup” method=”post” action=”http://techizens.com/dap/signup_submit.php”>
<label>First Name</label>
<input type=”text” name=”first_name” id=”first_name” />
<label>Email</label>
<input type=”text” name=”email” id=”email” />
<label>Tax Id</label>
<input type=”text” name=”custom_tax_id” id=”custom_tax_id” />
<button type=”submit”>Sign Up</button>
<input type=”hidden” name=”productId” value=”1″ />
<input type=”hidden” name=”redirect” value=”http://yoursite.com/login/?msg=SUCCESS_CREATION” />
</form>
</div>

That’s it.

Put the signup form code on your WP page/post/sidebar, and the form is displayed like this…

You can do the same for each custom field you want to accept in the dap free signup form:

1) Create the custom field in DAP Admin -> Users -> Custom Fields Page

2) Add the field to the free signup form as shown in the example above for tax_id.

Displaying Custom Fields On Your Site

You can display the value of the user’s own custom fields on your pages, using the merge tag like this:

%%DAPCUSTOMFIELD_tax_id%%

Using Custom Fields In DAP Emails

You can send custom field values in the DAP emails by using merge tags like this  –  %%custom_tax_id%%

Add ‘custom_’ in front of the custom field’s database field name.

So if you have defined a custom field called tax_id in your database, to include this field in the autoresponder/broadcast email, just add this – %%custom_tax_id%% to the body of your email.

That’s it. When the user receives the email, dap will automatically replace the merge tag with the user’s tax id value.

So if your email message body contains the following text:

Your Tax Id: %%custom_tax_id%%

When the user receives the message, it will look like this (in this example, the user’s taxId = 9999):

Your Tax Id: 9999

 

If you are using an older version of DAP < 4.4.3, then see the section below.

Older versions of DAP < 4.4.3

Your default code will look like this…
<form name=”dap_direct_signup” method=”post” action=”http://contentresponder.com/dap/signup_submit.php”>
<table>
<tr>    <td>First Name: </td>    <td><input type=”text” name=”first_name” size=”10″></td></tr>
<tr>    <td>Email:</td>    <td><input type=”text” name=”email” size=”10″></td></tr>
<tr>    <td colspan=”2″><input type=”submit” name=”Submit” value=”Sign Up”></td></tr>
</table>
<input type=”hidden” name=”productId” value=”1″><input type=”hidden” name=”redirect” value=”/blog/login?msg=SUCCESS_CREATION”>
</form>

Add this to your code
<tr>
<td>Tax ID:</td>
<td>
<input type=”text” name=”custom_tax_id” size=”10″></td>
</tr>
<tr>

Final version looks like this

<form name=”dap_direct_signup” method=”post” action=”http://contentresponder.com/dap/signup_submit.php”>
<table>
<tr>    <td>First Name: </td>    <td><input type=”text” name=”first_name” size=”10″></td></tr>
<tr>    <td>Email:</td>    <td><input type=”text” name=”email” size=”10″></td></tr>
<tr>    <td>Tax ID:</td>    <td><input type=”text” name=”tax_id” size=”10″></td></tr>
<tr>    <td colspan=”2″><input type=”submit” name=”Submit” value=”Sign Up”></td></tr>
</table>
<input type=”hidden” name=”productId” value=”1″><input type=”hidden” name=”redirect” value=”http://yoursite.com/login/?msg=SUCCESS_CREATION”>
</form>

you defined a custom field with the database field name = tax_id in the dap custom fields page)
Click Here to Leave a Comment Below 43 comments
Mark - October 1, 2011

This feature adds some amazing power to an already-strong script: I will be using this extensively for managing corporate subscriptions that include hundreds of self-sign-on registrations. Saves a ton of work and makes DAP extremely powerful and easy for reporting to my corporate clients to justify their buy-in. Well-done!

Reply
Dave - November 12, 2011

What is DAP’s field name for the “How Did You Hear About Us?” field?

I want to capture this information and see it is already a standard part of the User Database, so shouldn’t need to be added as a custom field. Can you tell me the field name to use to capture this in a Sign Up form? Thanks!

Reply
Veena Prashanth - November 15, 2011

>>What is DAPs field name for the How Did You Hear About Us? field? << The field name is howdidyouhearaboutus.

Reply
Dave - November 15, 2011

Veena,

Here’s my code for that line, but when I hit submit, it does not capture what I put in that field.

How did you hear about the conference?

Do I need to put in a support ticket?
Dave

Reply
Veena Prashanth - November 15, 2011

Dave,

You need to have a textarea field to accept data for the field. Something like this:
textarea name=”howdidyouhearaboutus” rows=”4″ cols=”20″>

Reply
Molly Ogren - November 30, 2011

Just because I haven’t told you lately…you guys really rock :).

Reply
Veena Prashanth - November 30, 2011

Molly is back :-).

Thanks Molly!

Reply
Andrew Peacock - January 17, 2012

Hi Veena,
In a later release, it would be great to have fields that are read-only for the user, but editable by admin.
Regards,
Andy

Reply
Veena Prashanth - January 17, 2012

Hi Andy,
Yes, we will consider this when we update the dap custom fields in a later release.

Reply
Andrew Peacock - January 17, 2012

Great news Veena, thanks for getting back to me,
Andy

Reply
Matt - January 19, 2012

Is it possible to create custom fields and still use the Aweber to Dap configuration?

I have extra feilds in my Aweber sign up that I would like to be able to pass in to DAP that the user could edit etc in their profile.

Is that possible?

Thanks in advance,

Matt

Reply
Veena Prashanth - January 19, 2012

>>
I have extra feilds in my Aweber sign up that I would like to be able to pass in to DAP that the user could edit etc in their profile.
Is that possible?
<< Not possible currently.

Reply
Sascha - February 10, 2012

Hi,
first of all, sorry for my german school english 🙂

I want to use DAP for my software page and i need to generate an individual licence-id at the registration process. My users don’t buy the software, they buy the livetime of the licence-key … to reduce illigal copies.

Is it possible to include a php-script direct in the sign up form, like:

Licence:<input type=text name=licence_id size=10³ value="” readonly>

… and isn’t it possible to add ‘readonly’ to that include?

Thanks
Sascha

DAP is a really powerful software!

Reply
Sascha - February 10, 2012

oh, sorry. it look like, my example was killed by the security-settings.

i’ve just included a call of a php-script as the value of the field.

Reply
Veena Prashanth - February 11, 2012

Hi Sasha,

When you add a custom field to the signup form, you need to prefix the name with custom_.

So it should be:
input type=text name=custom_license_id size=10³ value=” readonly

>>¦ and isnt it possible to add ‘readonly to that include? << Sorry, not possible currently.

Reply
Sascha - February 12, 2012

Hi Veena,

thanks for answering. But one more questions: is it possible to include a php-script for automaticly set the value of the text-field?

thnaks a lot
Sascha

Reply
Veena Prashanth - February 12, 2012

Hi Sasha,

It will require custom changes to auto-fill.

So if you have a .php script where you are using the dap signup form, then you can use this to auto-fill:

input type=text name=custom_license_id size=10³ value=< ?php echo $myval; ?>

You can use php code so $myval carries the license id for that user.

Reply
Sascha - February 13, 2012

wow. good news.
thanks a lot!

Reply
Dan - March 22, 2012

Is it possible to access this new custom data through the plugin framework like you can with the built in fields?

Reply
Dan - March 22, 2012

I can’t get this working… in the emails it’s there is nothing appearing where I have %%custom_variable%%. I suspect it’s because I am trying to do this in the welcome email (Products | Email Notifications), rather than the auto responder. Is it not possible to do it here?

Reply
Gareth - April 13, 2012

Hi guys – this is great! Is there a chance you would consider adding an upload document or image feild to the custom feilds options in a future release.

Thanks again!

Reply
Veena Prashanth - April 13, 2012

Yes, we will add more field types (other than just textboxes), required/optional options and ability to upload docs in a future release.

Reply
Mark - May 20, 2012

Jordan, as another option, you could simply create separate “Account Holder” and “Student Products.” The Account Holder product is where parents pay and receive renewal notices; the Student product is your actual product account. Simply collect the student’s email in the Account Holder product custom
field, as Veena advised, then manully add the student to the “Student ” product. This will allow easy separation of content and email dripping, and should foster confidence in the professionalism of your approach, thanks to DAP’s highly customizable platform.

Reply
Rom - July 22, 2012

Hello 🙂

I purchased DAP a few days ago and have been familiarizing myself with how it works. So far, it’s great!

However, there seems to be a crucial element lacking from the Profile Information: an Upload File field.

I need users to upload a Profile Picture, Training Certificate, Recommendation Letter, etc.

Is it possible to upload images and doc files as well?

Thanks in advanced!

Reply
Veena Prashanth - July 23, 2012

Hi Rom,

>>Is it possible to upload images and doc files as well? << Not possible currently but we have it on our list to-do. Hopefully we can get to it within next 6-8 months.

Reply
Ignatius - October 2, 2012

Wouldn’t it be better to allow the admin to select the order of the fields. As well have total control over which fields he assigns to a user profile?
Adding a custom fields “gender” and “date of birth” to the bottom of the list aint a practical location.
Certain default fields are just irrelevant to me. And if they dont serve a purpose I want them gone.

Reply
Veena Prashanth - October 2, 2012

Order is not possible but in the next version of dap, admin will have full control over the fields that get displayed.

The user profile page can be customized using shortcode in dap 4.4.

Something like this…
[DAPUserProfile
showFirstName=”Y”
showLastName=”Y”
showUserName=”Y”
showEmail=”Y”
showAddress1=”N”
showAddress2=”N”
showCity=”N”


showCustomFields=”Y”]

Reply
Alex - November 22, 2012

Is it possible to display these Custom Field on WordPress pages the same as in the emails?

Thanks,
Alex

Reply
Veena Prashanth - November 23, 2012

>>s it possible to display these Custom Field on WordPress pages the same as in the emails? << Yes, it will be possible with dap 4.4 (release this weekend).

Reply
Teresa - December 13, 2012

Can I add custom fields to PayPal Standard button code? I want to be able ask if this is a gift for someone else or if it’s from them and ask where they heard about my product. Is this possible?

Reply
Saliou - February 4, 2013

1) How to customize the state field to be drop down list with all the 50 American States?
2) How to put a control on the email format?
3) Same question with the phone# format XXX-XXX-XXXX?

Reply
Marites - February 7, 2013

Hello,

Can we add custom fields in the checkout page?

Reply
Carrie - June 8, 2013

Can we choose which custom fields to show in the profile page?

Something like this…
[DAPUserProfile
showFirstName=”Y”
showLastName=”Y”
showUserName=”Y”
showEmail=”Y”
showAddress1=”N”
showAddress2=”N”
showCity=”N”


showCustomFields=”custom_123username”]

Instead of showing all of the custom fields for profile updating?
showCustomFields=”Y”]

I would like the ability to just show certain custom fields per user lvl/ product lvl.

Reply
Richard - July 18, 2013

Hi there

Is it possible to shrink the signup form, and to customise the look and feel of it? I want to have it in my sidebar, but it sticks over the side and it’s also big and white, and doesn’t really fit in with my colour scheme… Do you have a widget version?

Thanks

Richard

Reply
Veena Prashanth - July 21, 2013

Hi Richard,

There’s no option to customizable the default dap signup form for sidebar. You will have to manually add style element to the input fields to re-size it.

If you have a copy of our new plugin – SignupToUnlock, then yes, you can customize it for sidebar.

http://wickedcoolplugins.com/the-plugins/signup-to-unlock-stu/

Thanks,
Veena

Reply
Richard - July 22, 2013

Hi Veena

Hm. I don’t really know how to do that. I did buy STU, but it seems that it doesn’t do what I want it to – because only the people who sign up actually on the STU page can access the information. I want everyone who has signed up to my list to be able to access the page.

Do you know when you’ll be incorporating that into STU?

Richard

Reply
Veena Prashanth - July 22, 2013

Hi Richard,

You can use STU as a regular signup form (like the default dap signup form). You dont have to hide content behind STU.

You can define the free dap product in dap products page, drip the content (contentresponder tab), then when you generate the STU form, set cookie expiry to 0 and set the STU product ID to the product Id of this dap free product. That’s it. When a user signs up via this form, they will now have access to the dripped content.

Thanks,
Veena

Reply
Kashif - January 8, 2014

Is it possible to add drop down element, like:

Collage One
Collage Two
Collage Three
……

Reply
Veena Prashanth - January 8, 2014

You can code up the form with the dropdown (as by default you can only use textbox) but make sure the field name that gets passed to signup_submit.php is in the same format as what gets passed with textbox field.

For ex.. if field name is tax_number. Then the name that gets passed to signup_submit.php should be custom_tax_number.

Reply
Jordan - March 21, 2014

Hello, I left a comment maybe 2 weeks ago but I haven’t had a reply as yet and can’t seem to find the exact post I commented on? So I will ask again here.

Is it possible to create custom fields to the registration/checkout form for a paid product aswell? I require additional information from my customers.

To my understanding I can accomplish this only if I use Authorize.net / Paypal Payments Pro with DAP’s integrated shopping cart? Can you clarify this for me?

Thank you.

Reply
Veena Prashanth - March 21, 2014

Hi Jordan,

< Custom Fields page and then if you want them to show up on the checkout page, add them in DAP Payments -> Cart Options page -> Custom
Fields section.

Thanks,
Veena

Reply
Urs - February 9, 2015

Hi Veena

Reading through the comments, I saw one back in 2012:

Yes, we will add more field types (other than just textboxes), required/optional options and ability to upload docs in a future release.

Just wondering whether that is still on your to do list. That would be a really good feature to have. In my opinion, it is long overdue… I would like to customize my profiles to allow the user to check preferences (-> checkboxes) and to answer a few Yes/No questions (-> radio buttons), etc.

Thanks
Urs

Reply
Veena Prashanth - February 9, 2015

Hi Urs,
Still on the to-do list. We have several other higher priority items currently but we surely hope to add this feature sometime this year.

Thanks,
Veena

Reply

Leave a Reply: