Crashing on Script..?

Tagged: 

Viewing 3 reply threads
  • Author
    Posts
  • February 24, 2019 at 7:15 PM #33859

    Richard Hassell
    Participant

    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!

    February 24, 2019 at 7:24 PM #33860

    Richard Hassell
    Participant

    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;

    February 24, 2019 at 7:57 PM #33861

    Richard Hassell
    Participant

    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

    February 24, 2019 at 8:24 PM #33862

    Brendan
    Keymaster

    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.

Viewing 3 reply threads

You must be logged in to reply to this topic.