Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have to use profile module, for my website, but I don't know how to enable, autofill feature there.
Plase find attached screenshot.
This is "must have" feature for my website. Thank you for your help.
PS. I've created 600 schools (school content type) so far.
Comment | File | Size | Author |
---|---|---|---|
autofill.jpg | 86.99 KB | adpo |
Comments
Comment #1
rfayComment #2
adpo CreditAttribution: adpo commentedI was able to add readonly atributes through form_api, then I will create link "Update link" after school number using theme template. The last step is to AJAXify this form, with content from existing nodes (schools).
Comment #3
rfayRemember that other people will find this issue in the future, so please make sure to report back with your successful techniques.
Comment #4
adpo CreditAttribution: adpo commentedI have simple question here:
How can add PHP if statement (form id = user_register) for my function:
Comment #5
adpo CreditAttribution: adpo commentedSolution.
Create new module, with js file:
1. Add update link
2. Create URL variable (quite easy when automatic title generation is enabled using id as a token)
3. Request data from URL (page content)
4. Pass your data to your fields.
PS> I don't know how to add js only for registration form in my module.
Comment #6
gloomcheng CreditAttribution: gloomcheng commentedUse hook_form_alter function?