Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Karl Butler 8 posts 109 karma points c-trib
    Jan 25, 2019 @ 10:38
    Karl Butler
    0

    Saving Content ID's from PreValueSources into Content fields

    Hi all,

    I currently have the following in place:

    • Umbraco v7.12.4 and Umbraco Forms v7.0.4
    • Prevalue source populated from the all profile content nodes, using "Umbraco Docs from xpath"
    • A drop down list, which uses the prevalues to populate the drop down list
    • Workflow: Upon submit a content node is created using the values entered into the form.

    I was wondering if there is a way I can use the corresponding ID's in the PreValue sources to populate the content node created. Instead of using the Prevalue Value (eg NodeName).

    I would like to show the Prevalue value (NodeName) in the dropdown list, but upon submit the ID of the content node the prevalue is taken from is added to a field in the content node produced.

    I was wondering if this is achievable in Umbraco Forms, and if so how this could be achieved.

    Any help would be much appreciated.

  • Heather Floyd 531 posts 786 karma points MVP 2x c-trib
    Sep 06, 2019 @ 18:31
    Heather Floyd
    0

    Hi Karl, I know this is an old question... But I wonder if using the "Umbraco Documents" prevalue type would provide an ID rather than the nodename?

    See: https://our.umbraco.com/Documentation/Add-ons/UmbracoForms/Editor/Defining-and-Attaching-Prevaluesources/Prevalue-source-types/index-v7

Please Sign in or register to post replies

Write your reply to:

Draft