Welcome Guest Search | Active Topics | Members | Log In | Register

If statement for check box Options
aleksandarcrvc
Posted: Thursday, June 23, 2011 4:53:41 AM
Rank: Advanced Member

Joined: 6/10/2011
Posts: 37
Points: 111
Location: Belgrade
Hi,

I have a value in form properties for checkbox and I want to check is it true or false

I try with if(EntreeScope.FormProperties["cbSelected"]=="True") but it doesn't work.

Any suggestion,

Alex
joe
Posted: Thursday, June 23, 2011 6:57:36 AM

Rank: ME Staff

Joined: 1/12/2009
Posts: 279
Points: 408
Location: VA
I believe with a checkbox, it will only send a value if it is checked. So first you need to do FormProperties.ContainsKey, to see if it was checked. Then the value of the form property is going to be "on", at least that is what I am seeing coming back.

Since it only sends a value if it is checked, you should be able to just do the ContainsKey.
aleksandarcrvc
Posted: Thursday, June 23, 2011 8:20:51 AM
Rank: Advanced Member

Joined: 6/10/2011
Posts: 37
Points: 111
Location: Belgrade
I solve problem,

Thanks Joe!
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.