Forum Discussion
QuickBaseCoachD
8 years agoQrew Captain
That javascript refresh is super handy, but it also hide error messages.
To debug,
Do this and then it will expose the success or failure message.
var text URL= URLRoot() & "db/" & Dbid() & "?a=API_AddRecord"
& "&_fid_15=" & [Related Sales order]
& "&_fid_13=" & URLEncode([Related Product])
& "&_fid_7=" & URLEncode([Product Description]) // this is a multi-line text box.
& "&_fid_8=" & [Product Quantity]
& "&_fid_9=" & [Product Unit Price]
& "&_fid_24=" & ToNumber([Taxable Item]);
$URL
//"javascript:" &
//"$.get('" &
//$URL &
//"',function(){" &
//"location.reload(true);" &
//"});"
//& "void(0);"
To debug,
Do this and then it will expose the success or failure message.
var text URL= URLRoot() & "db/" & Dbid() & "?a=API_AddRecord"
& "&_fid_15=" & [Related Sales order]
& "&_fid_13=" & URLEncode([Related Product])
& "&_fid_7=" & URLEncode([Product Description]) // this is a multi-line text box.
& "&_fid_8=" & [Product Quantity]
& "&_fid_9=" & [Product Unit Price]
& "&_fid_24=" & ToNumber([Taxable Item]);
$URL
//"javascript:" &
//"$.get('" &
//$URL &
//"',function(){" &
//"location.reload(true);" &
//"});"
//& "void(0);"
MarkCorcoran
8 years agoQrew Cadet
It is the multi-line that is creating the issue. As long as I have just one line of text, it works, when I add a second line, it fails (it doesn't create the record at all).
In addition, if I add the = character to a single line, it fails to display the description, but it does create the record.
In addition, if I add the = character to a single line, it fails to display the description, but it does create the record.