Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About sms

  • Rank
    Jr. Member

Profile Information

  • Location
    Hamburg, Germany

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. It's maybe the double use of 'updateprofile' for form id and button name.
  2. @BitPoet Thank you for your module! I have a small question about how to change my validation hook when fields are repeated via FormBuilderMultiplier and the name of the fields changes e.g. will be increased by number. I am getting the following notice (obviously the validation doesn't work, because the field name will not be increased with the ascending number created by FormBuilderMultiplier) Notice: Trying to get property 'value' of non-object in /.../site/templates/form-builder.inc on line 104 $forms->addHookAfter('FormBuilderProcessor::processInputDone', function($event) { $form = $event->arguments(0); if($form->name != 'tour-registration') return; $date_of_rabies_vaccination = $form->get('date_of_rabies_vaccination'); $dorv = $date_of_rabies_vaccination->value; // line 104 in form-builder.inc if($dorv > time()) { $date_of_rabies_vaccination->error(__("The date can not be in the future.")); } else if($dorv > strtotime("-21 DAYS")) { $date_of_rabies_vaccination->error(__("The date of the last rabies vaccination must be at least 21 days ago.")); } else { // vaccination date was more than 21 days ago } }); So how can I iterate resp. increment the field name in my hook? Thank you very much for your help. My environment: ProcessWire 3.0.161, FormBuilder 0.4.0 and FormBuilderMultiplier 0.0.6
  3. Yes, I'd also like to learn this, great idea! 🙂
  4. sms

    Can't delete page

    Sorry for my delayed answer and thank you for pointing me into the right direction. I have now deleted the assigned template in the database and could empty the trash. Thank you again and have a good day
  5. sms

    Can't delete page

    Thank you very much. Deleting the cache, clearing the browser cache and refreshing the PW-admin didn't help. Where do I find the modules cache?
  6. Hello, I get the following warning when I open the page tree: PagesLoader: You must assign a template to the page before setting custom field values (title__data) [pageClass=Page, template=] There is one page in the trash which I can't delete. I always get the message that the trash bin is empty (but there is still a 1 near the trash icon). How can I fix that? Thank you very much for your help.
  7. Thank you very much again. I have checked and unchecked these options but it doesn't work for me. But the Page Reference works perfectly: <a href="<?php echo $page->link->url; ?>"><?php echo $page->link->title; ?></a>
  8. Thank you for testing it, Adrian! I will try to find out why it isn't working for me. It's just a local page to play and to get deeper into PW.
  9. Hello adrian, thank you again for your quick reply. I have tested your code but the field outputs nothing now. However, I will test the Page Reference field tomorrow. Might be a better option <a href="<?php echo $page->AssistedURL; ?>"><?php echo $pages->get($page->AssistedURL)->title; ?></a>
  10. Hello gmclelland, thank you for your reply and the TracyDebugger tip. I think my approach is probably going in the wrong direction... I just wanted to have an input field to insert a link to another page or an anchor or select a page via the menu tree. That's why I decided to use this module. This <a href="<?php echo $page->AssistedURL; ?>"></a> outputs this: <a href="/processwire-test/page1/"></a> which is fine so far but I'd like to have the page name (or a custom text) within the <a></a> tags. Is there a better way to achieve that? Most probably Thank you again.
  11. Hello everybody, I am new to PW and while I am playing around to learn PW I downloaded this module and it works great but I have no clue how to get the name of the page I will link to: <a href="<?php echo $page->AssistedURL; ?>">?</a> Thank you very much for your help.
  • Create New...