Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
png
Custom_form_end user_view.png 67.0 kB 1 05-Dec-2023 05:32 Halmágyi Árpád
png
customButton2.png 276.2 kB 1 05-Dec-2023 05:32 krivacsz
png
customButtonFunction.png 45.0 kB 1 05-Dec-2023 05:32 krivacsz
png
customEvent2.png 263.2 kB 1 05-Dec-2023 05:32 krivacsz
png
custom_button.png 90.6 kB 1 05-Dec-2023 05:32 Halmágyi Árpád
png
custom_email_config.png 58.0 kB 1 05-Dec-2023 05:32 Halmágyi Árpád
png
custom_event_config.png 140.3 kB 1 05-Dec-2023 05:32 Halmágyi Árpád
png
custom_form.png 110.7 kB 1 05-Dec-2023 05:32 Halmágyi Árpád
png
jump.png 114.5 kB 1 05-Dec-2023 05:32 krivacsz
png
usermanager_custom_form.png 49.5 kB 1 05-Dec-2023 05:32 Halmágyi Árpád

This page (revision-10) was last changed on 05-Dec-2023 05:32 by Ada Csaba

This page was created on 05-Dec-2023 05:32 by krivacsz

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 2 added one line
On the below example you can configure an event for a user that uploads files to their folders and when the batch is completed they will submit and assessment list for the files from the folder.
At line 3 changed one line
1. Create a custom button under UserManager, UserName (default for all users), in the QuickJump select Webinterface, scroll down a little and at the Buttons section click on 'Add':
1. On the Preferences>>Webinterface>>custom forms create a new form, in our example assesm as on the below screenshot.
The name is arbitrary, we will reference it later with a meta_ prefix, so in our example the email body should contain {meta_assesment}
At line 5 changed one line
[attachments|customButton2.png]
[attachments|custom_form.png]
At line 7 changed one line
Add the following javascript function for this button:
2. On the User Manager select the user who needs to have the event triggered (or select the default user to apply for all users), and at the Quick Jump select WebInterafce and at the buttons section add a new Custom Button. For the name use something explicit for the desired action and for the target leave it as default value.
At line 9 changed one line
[attachments|customButtonFunction.png]\\
[attachments|custom_button.png]\\
Run event with selected items
At line 17 added 8 lines
Run event without selection
{{{
javascript:customEvent({my_action: 'publish', requiresSelection:'false'});
}}}
Run event uses the entire folder selected automatically
{{{
javascript:customEvent({my_action: 'publish',paths:'/'});
}}}
At line 14 changed one line
If you want more task/job mapped to buttons you can add more buttons with different variables on the javascript function and in the task/job you can branch off to do different actions:
3. On the User Manager select the user who needs to have the event triggered (or select the default user to apply for all users), and at the Quick Jump select WebInterafce and at the forms area assign the custom event form the one that you created at the 1st step.
At line 16 changed one line
a. crate a button to action1 and an other one for action2 :
[attachments|usermanager_custom_form.png]\\
At line 30 added 26 lines
4. On the User Manager select the user who needs to have the event triggered (or select the default user to apply for all users), and at the Quick Jump select Events and create a new event called "custom", and configure it exactly as shown on the below screenshot.
[attachments|custom_event_config.png]
5. Once you have the event created add an email task inside it and use the below variables.
{user_name} - The actual user who uploaded the files.
{line_start} - Start the text that should be converted/formatted to a readable format, by filling in the variables.
{name}{r}{n} - The file(s) name(s) that have been added to the upload list.
{line_end} - Stops the converting of the variables to actual data.
{meta_assesment} - variable to get the text entered by the client at the end of the upload batch process.
[attachments|custom_email_config.png]
The end user would view the following:
[attachments|Custom_form_end user_view.png]
If you want more tasks/jobs mapped to buttons you can add more buttons with different variables on the javascript function and in the task/job you can branch off to do different actions:
a. crate a button to action1 and an other one for action2 :
At line 26 changed 3 lines
b. In the task/job branch off by using a jump task to verify which button was hit:
[attachments|jump.png]
b. In the task/job branch off by using a jump task to verify which button was hit:
At line 30 changed 3 lines
2. Create the custom event. Under UserManager, UserName (default for all users), in the QuickJump select Webinterface, scroll down a little and at the Buttons section click on 'Add Event'. As User action check the 'custom' and check the 'Do event immediately' flag, set a task/job/plugin. That will be executed when the custom button is hit.
[attachments|customEvent2.png]
[attachments|jump.png]
Version Date Modified Size Author Changes ... Change note
10 05-Dec-2023 05:32 3.147 kB Ada Csaba to previous
9 05-Dec-2023 05:32 2.874 kB Halmágyi Árpád to previous | to last
8 05-Dec-2023 05:32 2.01 kB Halmágyi Árpád to previous | to last
7 05-Dec-2023 05:32 1.425 kB krivacsz to previous | to last
6 05-Dec-2023 05:32 1.427 kB krivacsz to previous | to last
5 05-Dec-2023 05:32 1.435 kB krivacsz to previous | to last
4 05-Dec-2023 05:32 1.423 kB krivacsz to previous | to last
3 05-Dec-2023 05:32 1.401 kB krivacsz to previous | to last
2 05-Dec-2023 05:32 1.404 kB krivacsz to previous | to last
1 05-Dec-2023 05:32 0.878 kB krivacsz to last
« This page (revision-10) was last changed on 05-Dec-2023 05:32 by Ada Csaba
G’day (anonymous guest)
CrushFTP11 | What's New

Referenced by
LeftMenu

JSPWiki