Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

109
Views
iframe - cant set data to a iframe textfield

iam using a form in my vue js app.And the form is from my main website, so that i am including the same form using

"vue-friendly-iframe": "^0.20.0",

for that i added

<vue-friendly-iframe src="url" @load="afterLoad()" id="formFrame"></vue-friendly-iframe>

and the url replaces my original form url.The form is loading perfectly.

so next i want to add my logged in user id to the form's hidden user if textfield after page load. so i added

@load="afterLoad()"

and

afterLoad(){
            console.log("setting user token");
            var formFrame=document.getElementById("formFrame");
            if(formFrame)
                formFrame.document.getElementById("accessories-form").user_id.value = this.$token;
        }

But i couldnt set the user id.How can i do that.Thanks in advance

And my vue js app is hosted in subdomain whereas actual forms are hosted in the primary domain

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!