What is the syntax for setting the Default Value o...
# suitescript
s
What is the syntax for setting the Default Value on custom "inline HTML" field via Formula? I keep getting "notice...could resolve to wrong datatype" :
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d106135.1203099034!2d-84.49064376828507!3d33.76783582520046!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x88f5045d6993098d%3A0x66fede2f990b630b!2sAtlanta%2C%20GA!5e0!3m2!1sen!2sus!4v1582147089046!5m2!1sen!2sus" width="600" height="450" frameborder="0" style="border:0;" allowfullscreen=""></iframe>
u
I believe it should be a string
s
tried wrapping with single quotes ' <iframe...</iframe>' as well as TO_CHAR() and no luck.
[...ERROR: Invalid Expression] when I try to set the value via SuiteFlow formula as well.
u
I just tried it and it worked for me
s
single quotes?
u
Copy code
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d106135.1203099034!2d-84.49064376828507!3d33.76783582520046!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x88f5045d6993098d%3A0x66fede2f990b630b!2sAtlanta%2C%20GA!5e0!3m2!1sen!2sus!4v1582147089046!5m2!1sen!2sus" width="600" height="450" frameborder="0" style="border:0;" allowfullscreen="false"></iframe>
try that
and uncheck the formula box
message has been deleted
s
Yeah, i can get it work without the formula as well, but ultimately I i will need some of that data to be dynamic
u
ah i see
if this is going to be on a record
i would create the field
and set the value using a UE script on beforeload
s
Thank you for your help.