Hello I’m creating a hiring website and for employers to see someone’s cv , they need to ask for permission.
When an employer asks sor someon’s cv they see this in their page
Then from my admin page I can give them the permission to see it
WHAT I WANT :
I want 2 things :
-when someone asks to see a cv, the admin recieves an email.
-when the admin accepts a request, the user gets and email to tell them “your request was accepted”
I tried to do it with sendgrid the same way people do for forms, but I don’t know how to get data from the dataset/repeater, and I don’t know where to put the sendemail function in my code.
my code :
…but I don’t know how to get data from the dataset/repeater…
Your REPEATER is connected to which database?
Your REPEATER is placed on a dynamic page?
How exactly is your setup?
My repeater is connected to the database where there are 3 informations:
employers(people who request to see cv)
candidate(the candidate which they want to see the cv)
dispo(boolean value: if they can see the cv or not)
in the admin page my repeater shows the pending requests for a cv and when I change the switch value to true the employers can access the cv from their members page.
I tried to do the same thing as the link you sent me but i don’t know how to get values from my data instead of the inputs.
for example:
const recipient = $w("#input11").value;
how do i change the $w(“#input11”).value to “email of the employer to whom i just accepted the request”