Jump to content

Search the Community

Showing results for tags 'formbuider'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. I am building a form for an inscription, so I want to have a token in a link in the mail to the subscriber, on which they click, to validate their email. So I tried to create a hidden field and to feed it through addHookBefore. It did not work, so I tried to create the field and feed it still through addHookBefore I did not work, neither. Here is my function : $forms->addHookBefore('FormBuilderProcessor::renderReady', function($e){ $processor = $e->object; // FormBuilderProcessor instance $form = $e->arguments(0); if($processor->formName == 'inscription') { $field = $this->modules->get('InputfieldHidden'); $field->attr('id+name', 'verif-token'); $field->label = "Token de vérification"; $field->value = bin2hex(random_bytes(32)); $field->required = true; $form->add($field); } }); My field in the link inside the mail is empty or I have the fielname between brackets. Maybe I miss a detail or my strategy is wrong.
×
×
  • Create New...