Git Product home page Git Product logo

Comments (7)

mdmag avatar mdmag commented on September 26, 2024 2

Hello @ben-doyle,

For point number 2, We have already settings in the form object to help you achieve that.
Here is the form object type:

type FormObj = {
	blocks: FormBlocks;
	themesList?: Theme[];
	theme?: Partial< FormTheme >;
	messages?: Partial< FormMessages >;
	logic?: FormLogic;
	settings?: {
		disableProgressBar?: boolean;
		disableWheelSwiping?: boolean;
		disableNavigationArrows?: boolean;
		animationDirection?: 'vertical' | 'horizontal';
		showQuestionsNumbers?: boolean;
		showLettersOnAnswers?: boolean;
	};
}

from quillforms.

antoniojlm84 avatar antoniojlm84 commented on September 26, 2024 1

I have the same problem at point 1, prev(), submit() are very usefull but is not posible to handle those events,if you could provide them will be nice.

I need full navigation control over my form because I need to know the path in every direction I move on the form to deterine if the block should be rendered or not. Without the goPrev or prev() event it is not posible to control that.

Please, could you expose those events?

Thanks!

from quillforms.

animalillo avatar animalillo commented on September 26, 2024 1

I would like to trigger some actions on the event a user goes back as well, it would be neat to have this exposed!

from quillforms.

mdmag avatar mdmag commented on September 26, 2024 1

Hello @ben-doyle @animalillo @antoniojlm84 ,

Thanks for this feedback.
I have introduced a useful hook to expose the entire api for the renderer store.
Please view this doc and let me know your feedback
Please update the following packages:

 "@quillforms/react-renderer-utils": "5.7.2",
 "@quillforms/renderer-core": "5.5.0"

from quillforms.

antoniojlm84 avatar antoniojlm84 commented on September 26, 2024

Thanks @mdmag for your improvement and expose all these new functions. Everything works as expected.

But in my case I miss a beforeGoingPrev prop to take full control over the navigation of the form.

Is there any hook or event or way to control this event when I fire goPrev() or I click on the back arrow button/scroll up the wheel of mouse?

from quillforms.

mdmag avatar mdmag commented on September 26, 2024

Hello @animalillo,
Please let me know your use case so I can guide you if possible?

from quillforms.

ansario avatar ansario commented on September 26, 2024

@animalillo how does goNext() work with beforeGoingNext? goNext() appears to skip my validation logic.

from quillforms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.