Default value on CRUD new record form field

Confluence User - 04 Sep, 2024

I have a CRUD page and when I click to new button to create a new record I want a text filed of new form to has a default value based on a url parameter. The problem is that joget doesn't have an option to pass url parameters when hit new crud button. It is not transparent. 

As an alternative you can get the url of the "new"  (from the browser) then create a new hyperlink action that point to that url adding the desired parameters. Then you must add javascript code to remove or hide the original "new" button after page loading

Βut it seems to me a ridiculous way, There must be a more normal and out of the box way.

crud;forms;url;requestparam;parameter;default

1


06 Sep, 2024
confluenceUser
confluenceUser

Either use a list in UI Menu instead of CRUD with a hyperlink action

or in CRUD you can create action buttons at CRUD Menu - Knowledge Base for DX 8 - Joget | COMMUNITY to create a new button with parameters. Oh, and ensure the form in Add Form is left empty CRUD Menu - Knowledge Base for DX 8 - Joget | COMMUNITY. That'll make the default add button hidden.


RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print