Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I want to set field_other empty as follows in PHP validator but it doesn't work.
$this->entity->field_other['und'][0]['value'] = "";
Any ideas ? Thanks
Comments
Comment #2
shishirsuvarna CreditAttribution: shishirsuvarna at Intelliswift commentedHi Paulwdru,
Try this :
$this->entity->field_other['und'][0]['value']['#default_value']= "";
Hope this works!
Comment #3
dqdDescriptions of the Priority and Status values can be found in the Issue queue handbook.
Critical is not the proper Priority for this request.