This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Trying to use a select field in IGA Forms to show all users in IGA

Hello, Community. 

Is there some way in IGA Forms to use a Select field in IGA in a way similar to a Dynamic Entity component at the User Application Forms? 

The ideal scenario is having a select field that contains all users and when a user is selected in this field, some other fields will be filled with the information's from the selected user.

I've implemented this in the User Application Forms but I couldn't found any documentation about this on IGA.


Is this idea possible? 

Parents
  • 0  

    I don't think it is possible, at least not without some custom code.

    I would try to use the REST API from IG for this. Theoretically, it should be possible to display all users as values in a SELECT component via the REST API, although this can certainly lead to performance problems with a larger number of users.

    My recommendation would rather be to provide a "search field" and in this search field the users can enter for example a user ID and in the background the REST API is called based on this keyword to search the user catalog. The results are then stored in a SELECT component and when the user selects them then other fields are populated accordingly.

    BR

    Tobias

  • 0 in reply to   

    Tobias, 

    How can I call the Rest APIs from the Form? Is it on the JS Editor field? 

    Do you know where I can find one example of this?

  • 0 in reply to 

    On the right side of the JS Editor in Form Builder, You can expand IG Request / API Examples for two examples.
    Select example to insert code at cursor.

    BR

    Magnus

Reply Children