Replies Back to Article
Advanced Conditional Region 2.0(free extension)

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.
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
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!
Great extension! Exactly what I needed.... really easy to use.
Thank you George - all the best :D
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.
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
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
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

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"
it's works well
Thanks a lot, I love this extention, it's very usefull
Best regards
Lachose
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


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