Replies Back to Article

Advanced Conditional Region 2.0(free extension)

RE: Not Showing on MX
June 6, 2002 by Waldo Smeets
That can be true, lots of UltraDev specific extensions don't work in Dreamweaver MX [:(] It's good that you reported it though, now we at least know that this one does not work!
RE: RE: Not Showing on MX
June 6, 2002 by Miguel Gonzalez

It is weird becuase I went and disabled it from Ultradev and it showed up in MX under Server Behaviors but there is no Conditional Region submenu.

Thnks.

RE: !
November 19, 2002 by Jeff Baker
I am a newbie to this extension. I created an insert page with the option of showing or hiding the content by using a checkbox. Will this extension work with this senerio on the page where the content is to go and if so is there a tutorial or short explaination on how this is done. Thank you for your help.
RE: vv found solution with waldo smets conditional region and dwMX
April 1, 2003 by Cecilia Martinez

Great solution! It works fine for me!

I've been waiting for an update for MX but this works just fine! Thanks for shareing!

Cecilia Mtz

Saved my life!
January 7, 2004 by kathryn brown
This was so easy to use and solved my problem for displaying information. I am so thankful that this tool was there! Thank you a million times over!!! You rock!
RE: Saved my life!
January 8, 2004 by George Petrov
You are very welcome :)
Advanced Conditional Region extension
January 17, 2004 by Jim Camomile
I downloaded and tried this extension and thought it was hillarious. As a scripting novice I have trouble figuring out how to write a valid expression and thought an extension gizmo that would help would be useful. When I selected a region to show or hide and clicked the extension button it simply asked me to enter the expression! If I knew how to do that, I wouldn't need a gizmo to help me -  I do know how to type in "If" and "Then".  Anyway, it was fun, quick to download, the packaging was nice and it was free.
RE: Advanced Conditional Region extension
February 21, 2004 by Andy Clegg

I agree, I can't write the code so thought this extension would be great. I wanted to show an image that had a link to an external page but only if the table's column contained data.

What's the point of an extension where you have to write the code yourself ! I would be grateful if someone could tell me what I need to type in the daft box!

Thanks you!
March 1, 2004 by Dave McGarry

Great extension! Exactly what I needed.... really easy to use.

Thank you George - all the best :D

RE: RE: Advanced Conditional Region extension
May 9, 2004 by Richard Lin

There's a reason this is called the **Advanced** Conditional Region.  As long as you know how to write a basic script, this is an excellent tool. If you don't know, then you should be using the regular Conditional Region, although I don't think it works under DWMX.  Or better yet, learn more about scripting before you use this Advanced Tool.

Thanks George!!!  This is an awesome step forward from the original version.

Thanks again, George
September 26, 2004 by Everett Padgett

Hey thanks for this nice update. As you appropriately named it "Advanced", this little guy provides a nice quick way for coders to enter our conditional statements.

To those unfamiliar with the curent server behavior, basic condition region is limited to "if db field" only, and now we can apply our if...elseif with more choices and add our own criteria all without even swiching to code view in MX2k4 ;-)

Thanks for taking the time to update this old favorite.

Regards,
Digitalus

empty spaces
March 10, 2005 by Victor Tan

Hi, I'm using pure asp upload to upload multiple pics.  It's going against an access database and I have 5 diff. fields for each pic upload.  I have conditional region on each pic, and if it's <> "", then hide.  Between records though, I get empty spaces between records if they uploaded maybe 2 of 5 pics instead of uploading all 5 pics. 

Is there a way to condense the empty spaces, or make it like they're not there?

Hopefully I explained myself...... Any help to get around this would be greatly appreciated.  Thanks

2 check in conditional region
June 23, 2005 by jean-philippe lachose

hello, i have a problem, i try to check in ASP javascrip 2 query with OR condition and it's dont works !!

i give you the error code :

Type d'erreur :
Erreur de compilation Microsoft JScript (0x800A03EE)
')' attendu
/intranetsif2/list_resultcontacts.asp, line 144, column 64
if (rechechsociet.Fields.Item("mobile_confidentiel").Value=="1" OR rechechsociet.Fields.Item("tel_confidentiel").Value=="1") { // Adv Conditional Region

i give you the script in conditional region :

rechechsociet.Fields.Item("mobile_confidentiel").Value=="1" OR rechechsociet.Fields.Item("tel_confidentiel").Value=="1"

It's works well with 1 condition.

Help please

Best regards

Lachose

RE: 2 check in conditional region
June 23, 2005 by George Petrov

as you are using JScript you need to use || and not the OR keyword.

So just enter:

rechechsociet.Fields.Item("mobile_confidentiel").Value=="1" || rechechsociet.Fields.Item("tel_confidentiel").Value=="1"

RE: RE: 2 check in conditional region
June 23, 2005 by jean-philippe lachose

it's works well

Thanks a lot, I love this extention, it's very usefull

Best regards

Lachose

RE: RE: 2 check in conditional region
August 31, 2005 by Roger López

hello, i can try this?

Casos.Fields.Item("Id_Abogado").Value = Session("MM_Username")

This -> Casos.Fields.Item("Id_Abogado").Value = 36 Work OK!

Best regards

ROGER

PD excusemme for my english

Please Help
September 16, 2005 by Matt Penn
What am I doing wrong here? I'm trying to set up the script so that if the "listingsBeds" field is empty, then don't display the region. ------------------------- <% if (listings.Fields.Item("listingBeds").Value <> "") { // Adv Conditional Region %> <%=(listings.Fields.Item("listingBeds").Value)%> Bed <% } // listings.Fields.Item("listingBeds").Value <> "" %> ----------------------------
RE: RE: Saved my life!
January 13, 2006 by Jay Luther
I am trying to use this with a repeat region behavior. It works great for those instances when the first record contains data, but if some records are null and some aren't I am running into problems. What I am doing is I have a results page with a table that has column headings such as name, address1, address2, city etc. If address 2 has some records with data and some without, this doesn't work correctly. Any ideas?
Thanks
October 1, 2006 by Patrick Sambas
Thanks for the extension!
very usful
May 31, 2010 by Greta Garberini

could there be an } else { option in one of the next versions? Anyway, its already good to have it as is!

download link
March 19, 2018 by Vivian Eersels
I see no download link