-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closeallfeildedit not working #1455
Comments
Please provide a full reproduction script for your issue. I cannot replicate your issue locally, closeAllFieldEdit is defined. It would suggest that your formBuilder instance has not been initialised correctly |
Can you provide example of closeAllFieldEdit in codepen.
…On Thu, 19 Oct, 2023, 4:06 am James Lucas, ***@***.***> wrote:
Please provide a full reproduction script for your issue. I cannot
replicate your issue locally, closeAllFieldEdit is defined. It would
suggest that your formBuilder instance has not been initialised correctly
—
Reply to this email directly, view it on GitHub
<#1455 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHOTHQZIU5UYKEVVGEOHJRTYABKXFAVCNFSM6AAAAAA6F4TM7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRZGUYDSNJRGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
The given doc link does not have a codepen example.
[image: image.png]
…On Thu, Oct 19, 2023 at 8:06 AM James Lucas ***@***.***> wrote:
https://formbuilder.online/docs/formBuilder/actions/closeAllFieldEdit/
—
Reply to this email directly, view it on GitHub
<#1455 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHOTHQ4HMQGJUARM5D2MFQDYACG2TAVCNFSM6AAAAAA6F4TM7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRZG44TMMJRGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
formBuilder.actions.closeAllFieldEdit() is a single action call which will closes all edit fields on the stage. The documentation link provided includes all javascript required in the example. |
Please see this
https://codepen.io/kvinoth69/pen/wvRVEyR
…On Thu, Oct 19, 2023 at 8:18 AM James Lucas ***@***.***> wrote:
formBuilder.actions.closeAllFieldEdit() is a single action call which will
closes all edit fields on the stage. The documentation link provided
includes all javascript required in the example.
—
Reply to this email directly, view it on GitHub
<#1455 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHOTHQZ66RH6734AS36JEMLYACIGTAVCNFSM6AAAAAA6F4TM7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRZHAYDKNBWGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This is wrong in the codepen
should be
However the issue is what I mentioned in my first response. formBuilder isn't initialised at the time you call closeAllFieldEdit. I'm unsure why you are wanting to call it straight away since you don't have any edit panels open after loading the form, however if you do want to call it you need to wait for formBuilder to initialise first. The simplest way to do that is to use the promise function https://formbuilder.online/docs/formBuilder/promise/ Normally you would be calling closeAllFieldEdit() from some piece of code in reaction to say clicking a button. |
While not solving you issue, PR ##1459 landed which will emit an error if you try to call a function prior to formBuilder being initialised |
Feedback provided and additional error reporting make to formBuilder to highlight trying to execute actions before initialisation is complete |
jQuery.Deferred exception: formBuilder.actions.closeAllFieldEdit is not a function TypeError: formBuilder.actions.closeAllFieldEdit is not a function
How to disable the all field while render the data
The text was updated successfully, but these errors were encountered: