Forums

Forums / Developing Portals / Submission error when related TPC form doesn't return data

Submission error when related TPC form doesn't return data

2 posts, 0 answered
  1. Mason Ambery
    Mason Ambery avatar
    67 posts
    Registered:
    19 Nov 2021
    11 Oct 2022
    Link to this post
    I have an edit form that has multiple TPC form configured.  On display of the page, the primary TPC form will always return data but the subform might not as the related record might not exists yet.  Although the page loads, submitting the form generates an error, I think because it is trying to submit both entity records yet the second one didn't exist.  I was able to hide the section when the subform doesn't contain data but it is still submitted which generates an error.  

    Is there a way to not submit the related form data on Submit of the page?

    To give context to what I'm trying to do, the primary entity is the Contact record.  The related form is Portal User.  I'm trying to show a workflow button when the Portal User data is blank so that I can create it otherwise I show the Username field and a list of Portal User Records in a subgrid.
  2. Omar S
    Omar S avatar
    51 posts
    Registered:
    04 Jul 2019
    11 Oct 2022 in reply to Mason Ambery
    Link to this post
    Hi Mason

    There is a feature on the nested TPC Form Configurations called Entity Behaviour in the
    Relationship tab. Change it from "Always Create" to "Auto" and that should resolve your issue. Keep in mind, if you have any static fields on that form, it will always submit. 

2 posts, 0 answered