Plugin - Getting Started

58 views
Skip to first unread message

Raudely Pimentel

unread,
Mar 30, 2023, 4:43:07 PM3/30/23
to Zengine Development
I am new to creating Zengine plugins so I apologize in advance if my questions have obvious answers.

1-. How can I validate the format of a field (Chilean Rut) in a Zengine form from a programming perspective?

2-. I am attempting to run the "Hello World" plugin example using Zengine's documentation, but when running it in development mode and pointing it to a local URL, it only loads the plugin.json file and not the HTML or JS files. How can I resolve this issue?

3-. Is there up-to-date documentation available for creating Zengine plugins?

4-. Should this validation be performed on the frontend or backend section?

Thanks in advance for your help

Raudely Pimentel

unread,
Apr 11, 2023, 4:19:23 PM4/11/23
to Zengine Development
Hi, good afternoon. I have noticed your changes in my workspace, and I have successfully validated the field that I needed. I have also been able to assign it privately to my workspace. However, I have a question regarding adding a specific plugin to a form in my workspace.

I have installed the frontend plugin in my workspace, but I can only see it in the configuration area. I don't see an option to add it to a specific form. Could you please help me with this?

Chris M

unread,
Apr 13, 2023, 11:51:20 AM4/13/23
to Zengine Development
1,4 : Validation happens when you attempt to save to the API. You will get a list of reason for failure if a field is not valid. There is always backend validation, it is up to you to decide if you want frontend validation with your plugin.

2: What Hello world Plugin are you referring too ? 

3: If you are starting a new project you should use  https://www.npmjs.com/package/@zenginehq/generator-zn-plugin#creating-a-full-plugin to start your plugin. It will ask you questions specific to your needs and provide you access to some legacy helpers and also let you work with modern React libraries.
Reply all
Reply to author
Forward
0 new messages