Update custom contact field from cms form

I’m having trouble with adding the value of a CMS field to a contact.

Working in CMS and Automations

Site link

What I’m trying to do

We are attempting to populate a custom field on a Contact with the calculated value populated in the “Score” field for the CMS entry.

We have created the custom field “Assessment Score” in Contact profiles. We also have an assessment form on the site. The form is connected to a CMS and upon submission a “Score” is calculated and populates the Score field in the CMS.

When contacts submit the form, it creates the contacts ok, however, I am not sure how to get it to populate the Assessment Score field.

What I’ve tried so far
I’ve attempted to use Automations to populate the field, however, the custom field isn’t showing as an option to match when using the Create or Update Contact element.

How are you calculating the score to be stored in the CMS? I assume it’s using a little code?

If so, then you’ll probably want to use a data hook, which allows you to run code when specific actions run on a CMS item (update, insert etc).

You can then update the contact - Update Contact | SDK