I am implementing a mobile friendly version of a NT 6.37 site, and noticed that whenever I designate a form fields as 'Mobile Only' in the template, the generated code has an extra 'End' which is being generated and causing the compiler to freak out. A sample code segment:
if p_web.IsMobile()
do Refresh::BrowseLineItemsMobile
Else
do Value::BrowseLineItemsMobile
packet = clip(packet) & '</td>'&CRLF
loc:cellstarted = 0
do SendPacket
End ! if p_web.IsMobile()
if loc:cellstarted
packet = clip(packet) & '</td></tr>'&CRLF
loc:cellstarted = 0
Else
packet = clip(packet) & '</tr>'&CRLF
End
loc:rowstarted = 0
loc:cellstarted = 0
end
do SendPacket
The second last line contains the offending extra 'End'. I have to put in 'p_web.IsMobile()=0' in the 'Hide Condition' of the field to make it work as expected.
No problems if I use 'Both' or 'Desktop Only'. The problem only happens in 'Mobile Only'.
Downloading 6.38 now to see if the bug has been fixed.
Cheers,
Devan