i2-Services, Inc. Forums

Full Version: How To Tip: Hiding Hidden Fields on Registration Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've added some fields to my member account table that are for "office use only".  I have them set so the member cannot view or edit the field.  This works fine for existing accounts, as they do not show up on the view or edit screens.

However, if I open up the registration page as a new member, these supposedly "hidden" fields are displayed.

Is there a way I can prevent the field from ever displaying on the Registration form?

weidemannia Wrote:
Is there a way I can prevent the field from ever displaying on the Registration form?


Yes I can show you how to achieve this. Let me know what type of field(s) you're using (text, or?) and the Custom Field ID #'s of the fields you do not want shown on registration.

Thx!

i2-Services, Inc. Wrote:

weidemannia Wrote:
Is there a way I can prevent the field from ever displaying on the Registration form?


Yes I can show you how to achieve this.  Let me know what type of field(s) you're using (text, or?) and the Custom Field ID #'s of the fields you do not want shown on registration.

Thx!

FIELD13  - text
FIELD14 - text
FIELD15 - text
FIELD16 - text area
FIELD17 - text

Appreciate your help.

Ok make the following change within /interface/subscribe.php

Text Field Change:

Code:
     {if ($type[customs] == "text") }


to

Code:
     {if ($type[customs] == "text" && $fid[customs] != "13" && $fid[customs] != "14"  && $fid[customs] != "15" && $fid[customs] != "17") }


and for Text area Field change:

Code:
    {if ($type[customs] == "textarea") }


to

Code:
    {if ($type[customs] == "textarea" && $fid[customs] != "16") }


Give that a shot - Post back if all works well, or not Smile

Thanks!
i2

Works like a charm! Thank YOU.
Version 2 now supports from the back-end admin leaving custom created fields off of the registration page.
Reference URL's