Using Fieldsets inside Record Edit form | Lwc Tutorial Part 21

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 พ.ย. 2023
  • In this video you are going to learn:
    1) how to pull fields from field set and show on record Edit form in lwc
    2) How to create Dynamic Record Edit form

ความคิดเห็น • 7

  • @ExplorerDeepita-wy7ut
    @ExplorerDeepita-wy7ut หลายเดือนก่อน +1

    Please show the version with picklist values as well. Thanks..

  • @adarshas1096
    @adarshas1096 4 หลายเดือนก่อน +1

    Hi, can we use the fieldsets created from 2 or more different sobjects and write apex code to return all the fields into a single form?

    • @salesforcein5minutes
      @salesforcein5minutes  4 หลายเดือนก่อน

      Sure you can do that not a problem but for that you need to create a wrapper class so that different objects fieldsets can be passed to your lwc component

    • @adarshas1096
      @adarshas1096 4 หลายเดือนก่อน +1

      ​@salesforcein5minutes, thanks for the reply!, okay understood, as this fieldsets is new for me, what other changes or additional things we need to add in the LWC side, so that I can display different sobjects fields in a single form

    • @salesforcein5minutes
      @salesforcein5minutes  4 หลายเดือนก่อน

      @@adarshas1096
      1)if you are showing everything within single form itself using record edit form it wont be possible , you have to use 2 record edit form as these fields are coming from 2 diff objects
      2) saving the form will be difficult, you have to write your own apex class to save record as you have to collect data from one object and then from another and finally make an apex call to save records
      3) showing errors and validation can be challenging as these 2 objects can have different validation but only have single save button so in that save button handle validation for 2 diff objects

    • @adarshas1096
      @adarshas1096 4 หลายเดือนก่อน +1

      ​@@salesforcein5minutes oh okay, thank you!

    • @salesforcein5minutes
      @salesforcein5minutes  4 หลายเดือนก่อน

      @@adarshas1096 welcome