Forums

This topic is locked

show region if variable equals a value

Posted 17 Jul 2004 00:58:15
1
has voted
17 Jul 2004 00:58:15 Kent Steelman posted:
I thought I saw a post earlier on show record set if conditional region equals a value from a database... I am trying to limit the uploads by members based on thier membership level. Hence I need be able to show the upload field only if the number of uploads is less than a selected value. Anyone know of this post or anyone have suggestions or is there an extention that allows for a conditional region to be show on a value other than record set not empty or empty.

Kent

Wm. Kent Steelman

Replies

Replied 18 Jul 2004 01:52:50
18 Jul 2004 01:52:50 Dave Thomas replied:
kent if your in no major rush for this i can help you out. i have some video material focusing on disabling form elements based on variables with 'if' staements.

trouble is im in the middle of repainting my house and all my stuff is boxed and out of the way, so if you can wait a few days i'll help you sort it.

Regards,
Dave

[DWMX 2004]|[FlashMX 2004 Pro]|[SQL]|[Access2000]|[ASP/VBScript]|[XP-Pro]
Replied 18 Jul 2004 16:40:43
18 Jul 2004 16:40:43 Kent Steelman replied:
thanks that would be great...

Wm. Kent Steelman
Replied 12 Aug 2004 23:43:17
12 Aug 2004 23:43:17 Dan Berdusco replied:
a1adiver,

This could be easily done with a simple IF statement. I am assuming that you are using ASP VBscript

<pre id=code><font face=courier size=2 id=code> &lt;%If (RS_name.Fields.Item("fieldName".Value) &lt; 50 Then %&gt;</font id=code></pre id=code>
Show your upload field here...
<pre id=code><font face=courier size=2 id=code>&lt;% End If %&gt; </font id=code></pre id=code>
Replied 19 Aug 2004 15:26:04
19 Aug 2004 15:26:04 Dave Thomas replied:
just saw this too, will come in handy

www.dmxzone.com/ShowDetail.asp?NewsId=5570

Regards,
Dave

[DWMX 2004]|[FlashMX 2004 Pro]|[SQL]|[Access2000]|[ASP/VBScript]|[XP-Pro]

Reply to this topic