Hi!!,
You should be able to implement this by refering to AJAX Subform, but to make sure to retrieve current users data, I would probably add a hidden field (username) and then make the value of this field fetch the value from the following hashvariable, so that I can use it in the ajax subform to retrieve the user's information.
Thanks a lot Emad Ebrahim , But can you explain to me why I cant achieve this using normal form ?
Hi, no problem.
to achieve similar result using a different method you will have to specifically fetch form data/ table data for each specific field, and create a normal form and assign the values of the fields you fetched to the form fields you created in the normal form, to assign the values you can use JS utility APIs.
To fetch form data, refer to Hash Variable#FormDataHashVariable
Refer to this page to use the form utilities Javascript API#FormUtil
I created an Employee form that includes fields like Name, Salary, Job Description, and Username. I want to retrieve and display data in the form based on the current logged-in user — specifically by matching the Username field with the current user's username.
Does anyone know how to achieve this in Joget?
Thank you!