Hi,
i am looking for help in adding a new entry in DB from the form i created.
my form has few fields but the ones i m struggling with are Mentee name (list of Mentee’s pulling from Mentee table in a option box), 2nd is Mentor, i put a condition to display only the Mentor mapped with Mentee in the table. the codition is working fine. whenever i select a Mentee , it gives me the Mentor name in the Mentor field
it seems to me like you are trying to save text (mentor name) to a field of type (user or mentor). if that’s the case you just need to apply the same expression you have for placeholder in the workflow page up to mentor, don’t get to the name.
Thanks @hanan1 , you are right, i m trying to save text to a field of type User but i don’t understand your solution, can you please elaborate it a more
I mean this is how the expression should be in your workflow:
But you should add your own expression: search for mentees:filtered:first item filter is the same one you applied in the placeholder.
the idea here is that you are not taking the value from the input field when click submit, because the input’s value is a text. And your database expects user. So you need to tell the workflow which mentor to choose because you can’t use the input field.