8 – Added a form in a form_alter, but form_state is not updated to reflect the new form

In a field_widget_entity_reference_paragraphs_form_alter() I call a plugin’s ->buildConfigurationForm() method then attach that form to the subform of the Paragraph like so:

        $build_form = $plugin->buildConfigurationForm((), $form_state);
        $element('subform')('smart_content') = $build_form;

However, this form contains a submit button with a custom ajax callback that is never called. Through debugging I found that when I press that ajax button, in FormAjaxResponseBuilder.php::buildResponse() $form_state->getTriggeringElement() gets called and it thinks its an entirely different element (a different field in the Node). My guess is because after I attached the form above, the updated form is not reflected in $form_state. My naive view is that all I’d need to do is call $form_state->setRebuild() after doing this, but that still doesn’t work (perhaps the form is considered fully processed at this point so it never gets rebuilt)?

How can I reflect the new form in $form_state so it gets the correct triggering element?

android – java.lang.IllegalStateException: view not added

I am getting the below exception. Couldn’t understand why. Tried to reproduce the issue too.But couldn’t succeed. Can someone help me understand why am I getting the issue and how to resolve it. Its not occuring all the time too.

Fatal Exception: java.lang.IllegalStateException: view not added
       at com.android.internal.policy.PhoneWindow.getViewRootImpl(PhoneWindow.java:1851)
       at com.android.internal.policy.PhoneWindow.setLocalFocus(PhoneWindow.java:1835)
       at com.qikwork.worker.views.fragment.MyBottomSheetFragment$onCreateView$1.onShow(MyBottomSheetFragment.java:53)
       at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1465)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:233)
       at android.app.ActivityThread.main(ActivityThread.java:7212)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)

Below is the list of new offers that were recently added to the network…

Below is the list of new offers that were recently added to the network…

ID: 12840
Name: CreditSafePass – Credit Reports & Repair – Trial – [US]
Categories: Credit Reports & Repair – Trial

ID: 12871
Name: Exceptional Keto – Diet & Weight Loss – SS – [CA]
Categories: Diet & Weight Loss

ID: 12875
Name: Flirt In Love – Dating – Trial – [AU, CA, FR, IE, NZ, ZA, UK, US]
Categories: Dating – Trial

ID: 12880
Name: Slimy Liquid – Diet & Weight Loss – SS – [DE, AT, CH]
Categories: Diet & Weight Loss

ID: 12890
Name: Watch Track – VSL – eCommerce – SS – [US]
Categories: eCommerce

ID: 12891
Name: My Green Fills Laundry Soap Bundles – V1 – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12892
Name: My Green Fills Laundry Machine Cleaner – VSL – eCommerce – Trial – [US, CA]
Categories: eCommerce – Trial

ID: 12893
Name: My Green Fills Laundry Machine Cleaner – V1 – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12894
Name: My Green Fills Laundry Soap Bundles – V2 – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12895
Name: My Green Fills Dryer Angel – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12896
Name: My Green Fills Laundry Machine Cleaner – V2 – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12897
Name: My Green Fills Truly Free Glass Cleaner – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12898
Name: My Green Fills Truly Free Everyday Cleaner – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12899
Name: My Green Fills Truly Free Stone & Steel Cleaning Polish – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12900
Name: My Green Fills Bara Essential Oil Blends – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12901
Name: My Green Fills Enzyme Stain Remover – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12902
Name: My Green Fills Wrinkle & Static Releaser – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12903
Name: My Green Fills Truly Free Space Freshener – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12904
Name: My Green Fills Laundry Machine Cleaner – V3 – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

Below is the list of new offers that were recently added to the network…

Below is the list of new offers that were recently added to the network…

ID: 12905
Name: My Green Fills Truly Free Polish Bundle – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12906
Name: Autaphagene – VSL – Health – SS – NO SEO – [US, CA, AU, UK, NZ]
Categories: Health

ID: 12907
Name: Alpha Zym Plus – VSL – Diet & Weight Loss – SS – [US, CA, AU, UK, NZ]
Categories: Diet & Weight Loss

ID: 12908
Name: My Green Fills Truly Free Deep Clening Bundle – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12909
Name: My Green Fills Dryer Angel Cover – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12910
Name: My Green Fills Truly Free DishWasher Soap – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12911
Name: My Green Fills Truly Free Aloe Hand Soap – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12912
Name: My Green Fills Truly Free Fruit & Vegie Wash – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12913
Name: My Green Fills Home Essentials Bundle – VSL – eCommerce – SS – [US, CA]
Categories: eCommerce

ID: 12914
Name: Full Bar Signal Boosters – eCommerce – SS – [US]
Categories: eCommerce

ID: 12915
Name: Keto Slender – Diet & Weight Loss – SS – [US]
Categories: Diet & Weight Loss

ID: 12916
Name: Organixx Clean Sourced Collagens – Skin Care – SS – [All GEOs]
Categories: Skin Care

ID: 12917
Name: Organixx Magi Complex – Health – SS – [All GEOs]
Categories: Health

ID: 12918
Name: Organixx OrganiGreens – Health – SS – [All GEOs]
Categories: Health

ID: 12919
Name: Organixx Essential Oils Bundle – Health – SS – [All GEOs]
Categories: Health

ID: 12920
Name: Organixx Ageless Brain – Brain Enhancement – SS – [All GEOs]
Categories: Brain Enhancement

ID: 12921
Name: NeckSpa – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12923
Name: Vyprimax – Male Enhancement – Trial – NO SEO – [US]
Categories: Male Enhancement – Trial

ID: 12924
Name: R40 Watch – eCommerce – SS – [22 GEOs]
Categories: eCommerce

Below is the list of new offers that were recently added to the network…

Below is the list of new offers that were recently added to the network…

ID: 12925
Name: T10 Cooler – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12926
Name: QWatch – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12927
Name: Snoral – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12928
Name: WifiTron – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12929
Name: Clear Visor – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12930
Name: Diamond Pro Electric 5 – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12931
Name: White Smile Dental Health – Teeth Whitening – SS – [22 GEOs]
Categories: Teeth Whitening

ID: 12932
Name: Knee Force – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12933
Name: Uber Watts – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12934
Name: TV Cast – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12935
Name: Buddy Buds – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12936
Name: Road Blaze – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12937
Name: InstaPrinter Mini – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12938
Name: Night Recon Tactical Flashlight – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12939
Name: Max Zoom – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12940
Name: Acuhealer Therapeutic Insoles – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12941
Name: Fit Smart Scale – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12942
Name: Zen Detox Foot Patches – Health – SS – [22 GEOs]
Categories: Health

ID: 12943
Name: NativePath Grass-Fed Collagen Peptides – V1 – Skin Care – SS – NO SEO – [US]
Categories: Skin Care

ID: 12944
Name: NativePath Grass-Fed Collagen Peptides – V2 – Skin Care – SS – NO SEO – [US]
Categories: Skin Care

Below is the list of new offers that were recently added to the network…

Below is the list of new offers that were recently added to the network…

ID: 12945
Name: Soft Skin IPL Hair Remover – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12946
Name: NIN Smartwatch – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12947
Name: Body Lift Pro – eCommerce – SS – [22 GEOs]
Categories: eCommerce

ID: 12948
Name: CBMedX CBD Oil – SS – [FR]
Categories: CBD

ID: 12949
Name: Organixx Clean Sourced Collagens – Skin Care – SS – [GEOs with exceptions]
Categories: Skin Care

ID: 12950
Name: Organixx OrganiGreens – Health – SS – [GEOs with exceptions]
Categories: Health

ID: 12951
Name: Sleep Relax – eCommerce – SS – [All GEOs, No LV, LT, EE]
Categories: eCommerce

ID: 12952
Name: CBmedX CBD Oil – CBD – SS – [DE]
Categories: CBD

ID: 12953
Name: Slim Max – Diet & Weight Loss – SS – [DE, AT, CH]
Categories: Diet & Weight Loss

ID: 12954
Name: Virimedx – V1 – Male Enhancement – SS – [DE, AT, CH]
Categories: Male Enhancement

ID: 12955
Name: Virimedx – V2 – Male Enhancement – SS – [DE, AT, CH]
Categories: Male Enhancement

ID: 12956
Name: Cleaner Smile LED Teeth Whitening Kit – Teeth Whitening – Trial – [US]
Categories: Teeth Whitening – Trial

ID: 12957
Name: Cialix – Male Enhancement – SS – NO SEO – [US]
Categories: Male Enhancement

ID: 12958
Name: TS Casino – Casino – SS – [CA]
Categories: Casino

ID: 12959
Name: TS Casino – Casino – SS – [DE]
Categories: Casino

ID: 12960
Name: TS Casino – Casino – SS – [FR]
Categories: Casino

ID: 12961
Name: Advanced Keto 1500 – Diet & Weight Loss – SS – NO SEO – [US]
Categories: Diet & Weight Loss

ID: 12962
Name: Advanced Keto 1500 – Diet & Weight Loss – SS – NO SEO – [CA]
Categories: Diet & Weight Loss

ID: 12963
Name: Vulkan Vegas – Casino – SS – [DE, AT]
Categories: Casino

Below is the list of new offers that were recently added to the network…

Below is the list of new offers that were recently added to the network…

ID: 12964
Name: Vulkan Vegas – Casino – SS – [CA]
Categories: Casino

ID: 12965
Name: Alpha Evolution Vital Keto – Diet & Weight Loss – Trial – [CA] – with 1-Click Upsell
Categories: Diet & Weight Loss – Trial

ID: 12966
Name: FastySlim – Diet & Weight Loss – SS – [DE, AT, CH]
Categories: Diet & Weight Loss

ID: 12967
Name: Exogenous Ketones Keto Advanced – Diet & Weight Loss – SS – [US]
Categories: Diet & Weight Loss

ID: 12968
Name: Exogenous Ketones Keto Advanced – Diet & Weight Loss – SS – [CA]
Categories: Diet & Weight Loss

ID: 12969
Name: Green Health CBD Gummy Bears – CBD – SS – [US]
Categories: CBD

ID: 12970
Name: Keto Fat Burner – Diet & Weight Loss – SS – [AU, NZ]
Categories: Diet & Weight Loss

ID: 12971
Name: Keto Fat Burner – Diet & Weight Loss – SS – NO SEO – [CA]
Categories: Diet & Weight Loss

ID: 12972
Name: Advo Focus – Brain Enhancement – SS – NO SEO – [US]
Categories: Brain Enhancement

ID: 12973
Name: Keoni CBD Gummies – CBD – SS – NO SEO – [US]
Categories: CBD

 

Below is the list of new offers that were recently added to the network…

Below is the list of new offers that were recently added to the network…

ID: 12841
Name: Exquisite Luxury Watch – eCommerce – Trial – [US]
Categories: eCommerce – Trial

ID: 12842
Name: Clock Chic Luxury Watch – eCommerce – Trial – [US]
Categories: eCommerce – Trial

ID: 12843
Name: Jewelry Chic – eCommerce – Trial – [US]
Categories: eCommerce – Trial

ID: 12844
Name: Keto Activate – Diet & Weight Loss – SS – [CA]
Categories: Diet & Weight Loss

ID: 12845
Name: Keto Activate – Diet & Weight Loss – SS – [FR]
Categories: Diet & Weight Loss

ID: 12846
Name: Hemp Max Lab Maximum Living Hemp Oil – CBD – SS – [FR]
Categories: CBD

ID: 12847
Name: Hemp Max Lab Maximum Living Hemp Oil – CBD – SS – [CA]
Categories: CBD

ID: 12848
Name: Hemp Max Lab Hemp Gummies – CBD – SS – [CA]
Categories: CBD

ID: 12849
Name: Tactical Flashlight – VSL – eCommerce – Trial – [US]
Categories: eCommerce – Trial

ID: 12850
Name: Swolgenix XL – Male Enhancement – Trial – [US]
Categories: Male Enhancement – Trial

ID: 12851
Name: Safe Mask 2.0 – eCommerce – SS – [143 GEOs]
Categories: eCommerce

ID: 12852
Name: Inflator Car X – Presell Page – eCommerce – SS – [143 GEOs]
Categories: eCommerce

ID: 12853
Name: Cooling Bra Pro – eCommerce – SS – [143 GEOs]
Categories: eCommerce

ID: 12854
Name: ExtremeBand Track – Presell Page – eCommerce – SS – [143 GEOs]
Categories: eCommerce

ID: 12855
Name: Clear Shield Mask – eCommerce – SS – [143 GEOs]
Categories: eCommerce

ID: 12856
Name: Gear AirBuds Pro – Presell Page – eCommerce – SS – [143 GEOs]
Categories: eCommerce

ID: 12857
Name: iWeight Smart Scale – eCommerce – SS – [143 GEOs]
Categories: eCommerce

ID: 12858
Name: Detox Healthy Patches – eCommerce – SS – [143 GEOs]
Categories: eCommerce

ID: 12859
Name: Rhino Max Male Enhancement Formula – Male Enhancement – Trial – [US] – with 1-Click Upsell
Categories: Male Enhancement – Trial

Below is the list of new offers that were recently added to the network…

Below is the list of new offers that were recently added to the network…

ID: 12860
Name: Secret Online Goldmine – $47 CTC – VSL – Biz Opp – SS – [CA, US, IL]
Categories: Biz-Opp

ID: 12861
Name: Auto Millionaire Site – $47 CTC – VSL – Biz Opp – SS – [US, CA]
Categories: Biz-Opp

ID: 12862
Name: Ontario Farms Hemp Oil – CBD – Trial – NO SEO – [CA] – with 1-Click Upsell
Categories: CBD – Trial

ID: 12863
Name: Magnum XT – VSL – Male Enhancement – SS – [16 GEOs]
Categories: Male Enhancement

ID: 12864
Name: Mastering Income Online – $49.95 CTC – VSL – Biz Opp – SS – [US, CA, AU, NZ]
Categories: Biz-Opp

ID: 12865
Name: Science Natural Supplements Ageless T – Men Health – SS – NO SEO – [35 GEOs]
Categories: Men Health

ID: 12866
Name: Science Natural Supplements TRP Soothe – Health – SS – NO SEO – [35 GEOs]
Categories: Health

ID: 12867
Name: BRZLNSKIN Bratoxinsta – Skin Care – SS – [US]
Categories: Skin Care

ID: 12868
Name: BRZLNSKIN Bratoxin Firming Serum – Skin Care – SS – [US]
Categories: Skin Care

ID: 12869
Name: BRZLNSKIN Brazilian Facelift Kit – Skin Care – SS – [US]
Categories: Skin Care

ID: 12870
Name: RMX – Male Enhancement – Trial – [US] – with 1-Click Upsell
Categories: Male Enhancement – Trial

ID: 12873
Name: SmartSnake HD – eCommerce – SS – [All GEOs, No LV, LT, EE]
Categories: eCommerce

ID: 12874
Name: Aura Glow – Skin Care – Trial – [US] – with 1-Click Upsell
Categories: Skin Care – Trial

ID: 12876
Name: FastySlim – V1 – Diet & Weight Loss – SS – [DE, AT, CH]
Categories: Diet & Weight Loss

ID: 12877
Name: Hairoxol Forte – Hair Products – SS – [DE, AT, CH]
Categories: Hair Products

ID: 12878
Name: MSX6 Natural Man Power – Male Enhancement – SS – [DE, AT, CH]
Categories: Male Enhancement

ID: 12879
Name: SkinXmed Anti Aging Cream – Skin Care – SS – [DE, AT, CH]
Categories: Skin Care

magento2 – Customer Address attribute added in grid in magento 2

I have added one customer address custom attribute. it is showing in the customer address form as a dropdown field. Now I want to show that as a column in customer address grid in admin with value.

I have added this code:

<column name="addressfield" sortOrder="95">
        <settings>
            <filter>text</filter>
            <label translate="true">addressfiled</label>
            <editor>
                <editorType>text</editorType>
            </editor>
        </settings>
    </column>

The column is added but the value is not showing in this. how to get the value which was set in form?