I need to make a field called full name that incorporates a first name field and last name field with a space between the names.. I use the script as below however as soon as I put a space between the ‘ and ‘ the program freezes and I have to force quit.
function Full_Name() {
var first_name = record.getFieldValue(‘fld-ee04b40fb2b64df5b26e7bf330e46657’);
var last_name = record.getFieldValue(‘fld-f6c97003b1124b9ba8bd677d2142213f’);
return first_name+”+last_name;
}
Full_Name();
any advise?
I am running : Version 5.3.5 (Build 943)
on OSX 10.14.3 with latest updates as of today.
Thanks Guys!
From another post on here I tried instead of ‘ to use ” and the same crash when trying to add a space between the “”
return first_name+””+last_name;
In case anyone was having the same issue.. For some very odd reason.. When I type quotes on my keyboard I get
“ “
but the correct one is below..
” “
There is a difference!
DOH
Yes there is. On iOS you can tap-and-hold on the quote character to get the proper straight quotes. On macOS you can disable smart quotes on the Keyboard / Text System Preferences panel.