Support Forum ยป User Profile

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • Matthias BerndtMatthias Berndt
    Participant

    Hello Peter,

    Thanks, but do you perhaps have any idea what the following data is supposed to do and why it only appears in the first entry of a data record entered via a user form and not via the API?

    ;s:6:"_state";s:8:"expanded";

    Matthias BerndtMatthias Berndt
    Participant

    The first problem was the forgotten prefix for the field IDs within the group, which is why the data wasn't being output. Saving the groups wasn't configured, but saving the group elements was already configured, and the group was already set to User.

    Now these entries are being accepted by the API and output in the profile.

    The next problem I'm having is that further entries aren't being accepted via the API, or they're just overwriting the first ones instead of adding to them.

    User-Custom-Fields:
    https://pastebin.com/b3reqg4A

    n8n JSON for HTTP-Request
    https://pastebin.com/BqiEDmZR

    Database-Data:
    https://pastebin.com/SrX0pPNh

    The entries from the form contain the following data at the end of the first entry, which is no longer included in subsequent entries.

    ;s:6:"_state";s:8:"expanded";

    These aren't included in the API entries. Could this be the cause, or what am I doing wrong?

    Matthias BerndtMatthias Berndt
    Participant

    Hello Peter,

    Sorry I couldn't reply sooner because I had to resolve another issue in the meantime, but unfortunately I haven't been able to restore the data entry (which I obviously corrupted during testing).

    Currently, no data is being saved that I send from n8n to the WordPress site for the fields.

    - REST-API-URL: https://domain.tld/wp-json/wp/v2/users/15/
    - I didn't find the entry in the wp_usermeta, but in the wp_postmeta.
    - https://pastebin.com/Y9GgQqDA (Here is the custom fields code.)
    - https://pastebin.com/7DLw36Lg (The registration form is implemented with Bricksforge Pro Forms and the data to be entered is sent to n8n via webhook, as I have not yet found a way to save this data directly from a registration form in the user profile.)

    My goal is to ask the user, if any of the texts change later, to confirm these texts again and not to overwrite these confirmations, but to add to them, so that later on it is still possible to see which of the changes the user has accepted.

    Thank you, Kind regards
    Matthias

    Matthias BerndtMatthias Berndt
    Participant

    Hello Peter,

    sorry, but I'm not nearly as deep into MetaBox yet, so I can't really use these instructions yet.

    I also don't want to start with JavaScript, as I got my license hoping to be able to implement my plans without programming. I'm not exactly young anymore, so I can't keep up with programming as well as I should, as there's always something new being added.

    Matthias BerndtMatthias Berndt
    Participant

    I found out that I can completely expand the form with the ID, but I don't want to include all fields (date and text) and I would like to be able to define that the date field and the text field are automatically filled in via hidden fields or automatic processes.

Viewing 5 posts - 1 through 5 (of 5 total)