Ankheur's avatar

Ankheur liked a comment+100 XP

3mos ago

Ok, I found the solution to responding to changes in the page_count field. I had to add:

->afterStateUpdated(function (Set $set, Get $get, $state) {
    $price = $state * 0.002;
    $set('suggested_price_2', '$' . number_format($price, 2));
})

to the page_count field.

Ankheur's avatar

Ankheur liked a comment+100 XP

4mos ago

Ok. Inside the configuration file like this:

'ftp' => [ 'driver' => 'ftp', 'host' => 'ftp.example.com', 'username' => 'your-username', 'password' => 'your-password', 'passive' => 'false', 'ignorePassiveAddress' => true, 'port' => 21, ]

and it works.