Skip to content

Write If conditions for checkbox in view page in edit mode?

Kanaparthi Sureshma Reddy

Kanaparthi Sureshma Reddy

Asked Nov 24, 2015, 10:41 PM EST1 answer
Share
LinkedInX
Hi,
I inserted two image paths dynamically into my database as column1 and column2. In my view page there is three checkboxes. If I check checkbox1 the right image inserted into column1 and wrong image inserted into column2 like wise If I check checkbox2 then the wrong image inserted into column1 and right image inserted into column2. If I check checkbox3 the "default" will be stored into column3(in above cases column3 will be null).
Now I stored the image paths in sessions in edit mode but based on session value I want to check the checkbox in view page.
How to write if conditions in view page for this requirement.
Thanks in advance.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mohammad Aman
    0
    Please share code and DB columns screenshot with me
    0