Abhik
02-06-2012, 01:07 PM
Hello,
I have a multiple selection checkbox user field where I have 10 options. I have limited maximum 5 options can be checked.
Now, I want to show only the checked options (even if the number of checked options are below 5) in postbit. How can I do that?
<vb:if condition="$post['field9'] & 1">Option 1</vb:if>
<vb:if condition="$post['field9'] & 2">Option 2</vb:if>
<vb:if condition="$post['field9'] & 3">Option 3</vb:if>
<vb:if condition="$post['field9'] & 4">Option 4</vb:if>
<vb:if condition="$post['field9'] & 5">Option 5</vb:if>
<vb:if condition="$post['field9'] & 6">Option 6</vb:if>
<vb:if condition="$post['field9'] & 7">Option 7</vb:if>
<vb:if condition="$post['field9'] & 8">Option 8</vb:if>
<vb:if condition="$post['field9'] & 9">Option 9</vb:if>
<vb:if condition="$post['field9'] & 10">Option 10</vb:if>
That seems to return the options randomly even if the option is not checked.
I have a multiple selection checkbox user field where I have 10 options. I have limited maximum 5 options can be checked.
Now, I want to show only the checked options (even if the number of checked options are below 5) in postbit. How can I do that?
<vb:if condition="$post['field9'] & 1">Option 1</vb:if>
<vb:if condition="$post['field9'] & 2">Option 2</vb:if>
<vb:if condition="$post['field9'] & 3">Option 3</vb:if>
<vb:if condition="$post['field9'] & 4">Option 4</vb:if>
<vb:if condition="$post['field9'] & 5">Option 5</vb:if>
<vb:if condition="$post['field9'] & 6">Option 6</vb:if>
<vb:if condition="$post['field9'] & 7">Option 7</vb:if>
<vb:if condition="$post['field9'] & 8">Option 8</vb:if>
<vb:if condition="$post['field9'] & 9">Option 9</vb:if>
<vb:if condition="$post['field9'] & 10">Option 10</vb:if>
That seems to return the options randomly even if the option is not checked.