one to many relationship

Rishiraj Narwaria - 22 Oct, 2025

I created Form A with an ID Generator (Primary Key) and generated a Form A List. Then I created Form B, where I added Form A’s ID Generator as a text field along with a new ID Generator and some additional fields.

In Form A List, I added a hyperlink that passes the ID parameter, so when I click it, Form A’s ID gets prepopulated in Form B. Everything works fine except one issue — when I click the hyperlink again from the Form A List, it opens the previously submitted Form B record instead of creating a new Form B record with a new ID.

It seems like I’m trying to create multiple Form B records under one Form A record (one-to-many relationship).

forms

1


02 Nov, 2026 •
stevenr •
0 •
rishi7071 •

 

This issue arises because Form B, when accessed from the hyperlink, opens the existing Form B record associated with the given ID instead of creating a new record.

The hyperlink in Form A List currently directs to an existing Form B record as it uses the ID to match records. Instead of creating a new record, it retrieves records associated with the existing ID.

1. Check the Configuration of the Datalist Hyperlink:

  • Ensure that the hyperlink is set to open Form B in "Add Record" mode rather than "Edit Record" mode. You can usually configure this in the properties of the hyperlink in the datalist.

 

2. Use URL Parameters for New Record Initialization:

  • Adjust the hyperlink to specify that a new record should be created. This might involve changing the URL parameters used when launching Form B, depending on how your application handles such requests.

 

3. Custom Action in Beanshell or JavaScript:

  • If the default settings don't allow opening Form B in an "Add" state, consider using Beanshell or JavaScript to customize the URL action to explicitly add a record.

 

Notes
  • Ensure that any URL parameter changes or script modifications comply with the security settings of the Joget platform.
  • The exact implementation details may vary based on the Joget platform's setup, the specific URL parameters it uses, and the application's configuration.

 

This advice is drawn from general principles, as the specific documentation or knowledge source on this particular setup isn't directly available. For further detailed guidance, reviewing how Joget handles URL parameters for form actions might provide additional insight.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print