0

I'm looking to change a dropdown field within an entry, then save it. I currently have a lightswitch which works perfectly, but now I need to change a dropdown field. I have the following for the lightswitch:

            $entry->setFieldValue('proposalAccepted', 1);
            Craft::$app->getElements()->saveElement($entry);

I've tried the following with no luck:

            $entry->setFieldValue('proposalStatus', 'delivered');
            Craft::$app->getElements()->saveElement($entry);

Is there something I'm missing?

Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.