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.