I have a checkbox in the page. It should be checked if the original value is True. I'm trying to implement ampscript for this, but it fails. Even it doeesn't show in the Preview.
I debugged, the value of
@industry_news is displayed as true but the checkbox is not checked by default.
<label> <input name="industry-news" %%[ IF @industry_news == 'true' THEN ]%%checked%%[ ENDIF ]%% type="checkbox" value="Y" /> Subscribe to Industry </label>
@industry_news is derived from the LookUpRows and set like below.
SET @industry_news = Field(@row,"Industry_News")