formBuilder icon indicating copy to clipboard operation
formBuilder copied to clipboard

how to solve error fb.actions.setLang is not a function

Open MBagherii opened this issue 3 years ago • 1 comments

Description:

I want to use setLang Api Method but it does not work. what can I do?

Environment Details:

  • formBuilder Version:
  • Browser: Chrome
  • OS:

Expected Behavior

Change language of plugin

Actual Behavior

Steps to Reproduce

Screenshot - *(optional)

Screenshot (4) *

MBagherii avatar Sep 29 '21 11:09 MBagherii

Could you post a fiddle to reproduce

Jojoshua avatar Mar 19 '22 12:03 Jojoshua

This can only occur when the formbuilder instance is not initialised completely. If you are initialising multiple forms or are calling actions.setLang right after initialisation then you need to use the promise interface to ensure initialisation is complete.

Please reopen with a reproduction if this still occurs.

lucasnetau avatar Oct 17 '23 02:10 lucasnetau