DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Can I add conditions on a page?

 5 Replies
 1 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 16
New Around Here

Hello,

I don't have access to our website's server computer, but I am wondering if it's possible for me (as someone who can otherwise edit the websie, add and remove modules, etc.) to create conditions on a page. 

What I mean is, if only people named 'John' can buy tomatoes, the box to tick for tomatoes won't be selectable unless a name field equals 'John'. Pretty rough example but that's what I need. Thanks! 

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
This doesn't sound like a DNN question. Are you using a specific module for this feature you're talking about? There are thousands of modules out there. 😎
New Around Here
Posts: 16
New Around Here

I'm not sure; I'm woefully unfamilir with DNN. But these are the modules available to me:

Realizing another way I could have phrased my question is this: I need to enable and disable fields using code. Can I do that with one of these modules here, or is it a wash? 

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!
Posted By MakHen on 1/15/2025 11:58 AM

I'm not sure; I'm woefully unfamilir with DNN. But these are the modules available to me:

Realizing another way I could have phrased my question is this: I need to enable and disable fields using code. Can I do that with one of these modules here, or is it a wash? 

Nothing is a wash with DNN.  It just depends on one's skills, resources, and what extensions/modules you have available to you.  

If you have the ability to edit that page, you should do the following to determine what the module is.  

  1. Log in with editing access
  2. Navigate to the page
  3. Click the pencil icon in the left persona bar to go into Edit mode.  
  4. Hover over the module in question to see and find the actions menu that looks like a gear.  
  5. Choose the Settings option (also a gear icon). 
  6. In the first tab (Modules Settings), look in the Basic Settings section (make sure it's expanded). 
  7. You'll see a read-only field labeled Module.  This is the name of the module.  

Let's start there.  😎 

 

New Around Here
Posts: 16
New Around Here
Posted By Will Strohl on 1/15/2025 3:26 PM
Posted By MakHen on 1/15/2025 11:58 AM

I'm not sure; I'm woefully unfamilir with DNN. But these are the modules available to me:

Realizing another way I could have phrased my question is this: I need to enable and disable fields using code. Can I do that with one of these modules here, or is it a wash? 

Nothing is a wash with DNN.  It just depends on one's skills, resources, and what extensions/modules you have available to you.  

If you have the ability to edit that page, you should do the following to determine what the module is.  

  1. Log in with editing access
  2. Navigate to the page
  3. Click the pencil icon in the left persona bar to go into Edit mode.  
  4. Hover over the module in question to see and find the actions menu that looks like a gear.  
  5. Choose the Settings option (also a gear icon). 
  6. In the first tab (Modules Settings), look in the Basic Settings section (make sure it's expanded). 
  7. You'll see a read-only field labeled Module.  This is the name of the module.  

Let's start there.  😎 

 

Here you :) 

 

I am guessing that I'll have to create another module to interact with this one to get what I want to happen to happen. Is that right? 

Thanks for the help by the way! 

 

 

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

That's what I was looking for.  This sounds like a custom module that may have been built for you.  Do you know who the developer is/was?  Do you have contact info for them and/or source code?  

You may be able to find some of that by viewing the Extensions in the persona bar, then clicking the edit icon next to that module.  

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

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

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. 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.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved