Welcome Guest! To enable all features please Login or Register.
Options
View
Go to last post Go to first unread
Online vcsharp  
#1 Posted : Sunday, November 12, 2017 8:22:53 AM(UTC)
vcsharp


Rank: YAF Lover

Reputation:

Joined: 10/3/2017(UTC)
Posts: 37
Man
Anguilla

Thanks: 9 times
I need to exclude Occupation field from registration page and also from Edit/View Profile pages.

How would I do this?

Edited by user Monday, November 13, 2017 11:18:21 AM(UTC)  | Reason: Not specified

Sponsor
Offline tha_watcha  
#2 Posted : Monday, November 13, 2017 11:11:30 AM(UTC)
tha_watcha


Rank: YAF.NET Project Lead

Reputation:

Medals: Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.

Joined: 3/6/2010(UTC)
Posts: 3,736
Germany

Thanks: 70 times
Was thanked: 1149 time(s) in 979 post(s)
Originally Posted by: vcsharp Go to Quoted Post
I need to exclude Occupation field from registration page and also from Edit/View Profile pages.

How would I do this?


The easiest way would be to use set the Visible attribute to false for example modify the page controls/EditUserProfile.ascx

Code:
    <tr runat="server" Visible="false">
        <td class="postheader">
            <YAF:LocalizedLabel ID="LocalizedLabel3" runat="server" LocalizedPage="CP_EDITPROFILE"
                LocalizedTag="OCCUPATION" />
        </td>
        <td class="post">
            <asp:TextBox ID="Occupation" runat="server" CssClass="edit" />
        </td>
    </tr>


in that case you render the table row as control and set the visible attribute to false
thanks 1 user thanked tha_watcha for this useful post.
vcsharp on 11/13/2017(UTC)
Online vcsharp  
#3 Posted : Monday, November 13, 2017 11:17:14 AM(UTC)
vcsharp


Rank: YAF Lover

Reputation:

Joined: 10/3/2017(UTC)
Posts: 37
Man
Anguilla

Thanks: 9 times
Great. Yes, that will work. Thanks.
Rss Feed  Atom Feed
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error