Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Disabling link depending on row contents

Guest
Oct 19, 2007 Oct 19, 2007
I have a repeating row and the last column is a button that lets the user perform an action (in this case, they are able to create a reply message). I want to deactivate the button in some cases, usually if the row is from a user of a certain type, which I can determine from a variable. Is there a way to deactive a button depending on a variable state?

TOPICS
Server side applications
242
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 19, 2007 Oct 19, 2007
>I have a repeating row and the last column is a button that lets the user
> perform an action (in this case, they are able to create a reply message).
> I
> want to deactivate the button in some cases, usually if the row is from a
> user
> of a certain type, which I can determine from a variable. Is there a way
> to
> deactive a button depending on a variable state?


What language? When you say 'button', do you mean 'hyperlink'?

ASP/VBSCRIPT:

<% If varSomeVariable = "this" Then %>
<a href="page.asp">Create a reply message</a>
<% ElseIf varSomeVariable = "that" or varSomeVariable = "the other" Then %>
<p>Sorry, your variables are wrong!</p>
<% End If %>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 19, 2007 Oct 19, 2007
LATEST
Sorry, PHP. Any help with formatting rows in repeating regions and enabling/disabling a link on the row (in this case it's a "reply" link as the last column.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines