Jump to content

SIERRA

Members
  • Posts

    85
  • Joined

  • Last visited

Posts posted by SIERRA

  1. Hi,

    We have a vendor folder in our project root directory.

    However, when we try to call the vendor/autoload.php file from the template file, we encounter the following error on the site:

    PHP Fatal error:  Cannot declare class ComposerAutoloaderInit9249ca7144adea638e43f1ea4a5d11c5, because the name is already in use in C:\wamp64\www\ticf\site\assets\cache\FileCompiler\vendor\composer\autoload_real.php on line 5

    please suggest how to fix this

  2. Hi,

    Thank you for your suggestion.

    We have tried your code, and it is working well for the repeater fields.

    However, one issue we are facing is that if a repeater item has an error, it should be opened by default at page loading. Unfortunately, it is not opening, and we need to manually open and view the error.

    Please find the screenshot attached and our coding .Could you please possibilities to fix this?

    Thank you.


    Code in ready.php file
    $wire->addHookAfter("Inputfield(name=test1_repeater)::processInput", function (HookEvent $event) {
        /** @var InputfieldRepeater $inputfieldRepeater */
        $inputfieldRepeater = $event->object;

        /** @var InputfieldWrapper $wrapper */
        foreach ($inputfieldRepeater->getWrappers() as $repeaterItemId => $wrapper) {
            /** @var Inputfield $itemField */
            $itemField = $wrapper->getByName("test_name_repeater$repeaterItemId");
           
            if($itemField && $itemField->value == ''){
                $itemField->error('Custom Message');            
            }
        }
     
    });

    Screenshot_67.thumb.png.a8c0daeaef568751600083e3c0e7f22b.pngScreenshot_68.thumb.png.92551cb91ec6e6a6724a7291eba0e995.png

  3.  Hi

    We tried using this hook method "$this->addHookAfter('Inputfield::processInput', $this, 'validateCustomField');", Using this we can able to show the error messages in the repeater field.

    However, we need to show the error message below the respective inputfield in the Repeater. Is there any hook methods to achieve this?

    Thanks for the support and we will avoid duplicate questions.

  4. 17 hours ago, DV-JF said:

    I'd theese kind of problems with XAMPP, too. I've switched to WAMP Server - since then nearly everything went smoothly ?

    Perhaps you give it a try.

    Hi @DV-JF

    I have installed and configured Wamp server for the development source.

    It downloads something when I try to open the URL.

    Thank you.

     

    Screenshot_51.png

    17 hours ago, zoeck said:

    Could it be that you have an absolute path to the css files with https in the source code?

    No

  5. Hi 

    We need to validate the input fields of the repeater item in Process Wire Admin Page. 

    Currently we can be able to show our custom error messages on page beginning and repeater item field beginning (Please find the attachment). How can we display our custom error messages below the input fields of the repeater item (Similar to Process Wire Error message).

    Please suggest?

    Custom_Errors.png

    PW_Errors.png

  6. Hi,

    We copied the production source and configured it the same as the development source on the localhost. However, the website is not working on the localhost, whereas it is working fine on the production source.

    Please find the error attached.

    FYI - we have SSL for the production environment.

    Can anyone kindly help resolve this issue?

    Thank you

    Screenshot_45.png

    Screenshot_47.png

  7. Hi,

    We are capturing the following using repeater items using process wire admin interface for sending Event related instant SMS
    Venue
    Time
    Event name 

    Once 'Submit' button is clicked we are replacing the above in our SMS template and are sending. Before that we would like to validate the character count of SMS content. We would like validate the character count of Venue+time+Event name.

    1. How can we do this using JavaScript.
    2. How can we insert custom .js file in ProcessWire admin side.
    3. How can we refer these repeater fields.

    Please help
    Thanks

     

  8. Hi,

    For a website we are using ProcessWire partially for some features. This will be available in a folder. Some other features will be available in Core PHP and they will be available in another folder. The structure will be as below

    Website

    ProcessWire (Sub folder - ProcessWire soure)

    admin (Sub folder - Core PHP source)

    We would like to allow the users who logged in to ProcessWire to access the other admin panel also without asking them to login again. How can we do this.

    Thanks

     

  9. Hi,

    1. We have 'Seminar_Schedule' repeater field in the template (One of the Admin Control Panel Page)
    2. Inside the 'Seminar_Schedule' repeater field (parent), we have 'SS_Datetime' repeater field.
    3. Inside the 'SS_Datetime' repeater field (child), We have 'SS_Startdatetime' and 'SS_Enddatetime' fields.

    How to do validation for 'SS_Startdatetime' and 'SS_Enddatetime' fields for below cases.

    1. 'SS_Startdatetime' should be lesser than to 'SS_Enddatetime'
    2. 'SS_Startdatetime' should not be equal to 'SS_Enddatetime'

    PFA and Suggest,Screenshot_261.thumb.png.1f666e0249413a290a14d93bdf15cd47.png

  10. Hi,

    1. We have 'Seminar_Schedule' repeater field in the template (One of the Admin Control Panel Page)
    2. Inside the 'Seminar_Schedule' repeater field, we have 'preview_sms_content' field and other fields.

    In this 'preview_sms_content' field (textarea) -

    • How to add our SMS Content to this field dynamically. (Based on the values entered on the other input fields)
    • How to display the characters count of SMS Content to this field dynamically.
    • How to restrict to enter the characters manually.(How to make this field readonly)

    PFA and Suggest,

    Thank you

     

    Screenshot_262.png

  11. Hi,

    1. We have 'Seminar_Schedule' repeater field in the template (One of the Admin Control Panel Page)
    2. Inside the 'Seminar_Schedule' repeater field (parent), we have 'SS_Datetime' repeater field.
    3. Inside the 'SS_Datetime' repeater field (child), We have 'SS_Startdatetime' and 'SS_Enddatetime' fields.

    How to do validation for 'SS_Startdatetime' and 'SS_Enddatetime' fields for below cases.

    • Disallow creating duplicate items with the same date and time
    • The 'SS_Startdatetime' value must not set within the range of existing items 'SS_Startdatetime' and 'SS_Enddatetime' fields.
    • Similarly, The 'SS_Enddatetime' value must not fall within the range of existing items 'SS_Startdatetime' and 'SS_Enddatetime' fields.

     

    Screenshot_261.png

×
×
  • Create New...