Property .Value of a document property always returns an object, so you need to cast it before using it. And btw, you may run into an exception if no value has been selected in the checkbox list, so try using TryParse() instead of Convert.ToInt32() which will throw an exception for an empty value.
get the value of the selected checkbox property as an int
Hi, I've been trying to work out thow to get the value of a selected checkbox within an after save eventhandler. I can get it as a string:
Ok, I found a solution from trial and error:
I'd still be interested in any other approaches, if they exist?
Property .Value of a document property always returns an object, so you need to cast it before using it. And btw, you may run into an exception if no value has been selected in the checkbox list, so try using TryParse() instead of Convert.ToInt32() which will throw an exception for an empty value.
Cheers,
/Dirk
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.