Find Jobs
Hire Freelancers

Drupal 9 unsetValue in an ajax callback

$30-250 USD

Closed
Posted almost 3 years ago

$30-250 USD

Paid on delivery
Field A = boolean Field B = select list from a taxonomy entity Field B = hidden, when field A is not select Field C = checked, when Field B have certain values. This is achieved with the #states When Field A = unselect and Field B has value, this value remain in the form_state Goal : unset the field value in an ajax callback. if ($form_state->getValue('field_A') === 0 ) { $form_state->unsetValue('field_B'); } IF Field B have no value field C should be unchecked. Not sure my approach is correct. Anny solution to unset the value is ok. For clearness : Field A is a boolean, wether there is a nearby train station. When a user check this. Field B appear, where they can choose out of a distance. When the distance is 0 or 250m or 500m, field C is checked, that says, trainstation nearby.
Project ID: 30677567

About the project

10 proposals
Remote project
Active 3 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
10 freelancers are bidding on average $158 USD for this job
User Avatar
Hello, Hope you are doing well! I am writing to be a consideration for the position of PHP(Drupal) Developer with over 7 years of experience in developing. I am ready and able to bring many efforts to your project. Kindly share your project requirements so I can analyze the requirements and start right away. My expertise and skills are: -Solid experience with UI: XHTML,HTML,HTML5, CSS,CSS3,JavaScript, Node.js, React.js, Ajax, JQuery, JSON -Excellent knowledge of ( CodeIgniter MVC frameworks, Laravel, Yii, Zend, Cake and etc.) -Strong Knowledge of XML/XSLT/SOAP/REST, Linux, Apache/Nginx -Knowledge of CMS concepts like WordPress, Magento, Joomla, Drupal -Experience working with APIs -MySQL, MongoDB experience -Proficiency in object-oriented development Availability- I can work 40 hours per week Available now for a quick discussion to start immediately. Eagerly waiting for your response so I can start your project right now. Best Regards, Santosh.
$140 USD in 7 days
4.3 (64 reviews)
6.6
6.6
User Avatar
Hi, I'm a Drupal dev with 10 year+ experience. I can make it right away for you Please message me for details. Thanks,
$60 USD in 1 day
4.7 (25 reviews)
5.0
5.0
User Avatar
Hey, This is Mohammad Full Stack, PHP Developer. Your Project Title is Drupal 9 unsetValue in an ajax callback Right? Sure You have come to the right place And I am ready to work over your project. Please visit my portfolio: https://www.freelancer.com/u/irfanui Before accepting this offer please message me in my inbox to have a discussion about this job to avoid confusions. Regards Mohammad Full Stack, PHP Developer
$250 USD in 42 days
4.9 (7 reviews)
3.4
3.4
User Avatar
Hello, I have 4+ year experience in Drupal. as I have checked your code, you are trying wrong approach. let's discuss and fix it. thanks.
$31 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Santa Clara, United States
0.0
0
Member since Jun 28, 2021

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.