record.setNoteFieldValue() isn’t working

Tap Forms – Organizer Database App for Mac, iPhone, and iPad Forums Script Talk record.setNoteFieldValue() isn’t working

Viewing 2 reply threads
  • Author
    Posts
  • April 10, 2023 at 8:25 AM #49325

    Paul Wirth
    Participant

    Hello again, I’m having an issue getting record.setNoteFieldValue() to work.

    (I mentioned this here but it wasn’t really on-topic, so I’m starting a new topic)

    Where targetId is the field ID of a Note field, using record.setFieldValue(targetId,'foo') updates the text of the Note field, but using record.setNoteFieldValue(targetId,'foo') fails to update.

    I’m attaching a Tap Forms document that demonstrates. One form uses record.setFieldValue() and the other uses record.setNoteFieldValue(). In each, the field script attempts to update a “Target” Note field based on text entered in the field “Trigger”.

    Attachments:
    You must be logged in to view attached files.
    April 10, 2023 at 7:44 PM #49328

    Brendan
    Keymaster

    Hi Paul,

    Thanks for bringing this to my attention.

    I see the issue with your example. Thanks for providing them.

    I’ll have to work on a fix for this. I’m starting to think the note version is redundant anyway.

    For now just use the regular setFieldValue() function.

    April 10, 2023 at 8:10 PM #49329

    Paul Wirth
    Participant

    Thanks Brendan. The only difference that matters to me is that I would prefer to keep default font formatting in the Note field.

Viewing 2 reply threads

You must be logged in to reply to this topic.