9 years ago
5
Topic

Hi,

How it is possible to duplicate a form ?

Unfortunately, button can make a new form, but without duplicate content of fields.

Is a plug-in exist ? I don't find.

Thanks a lot,

Carmin

Get a VIP membership
9 years ago
1
Level 1

Hello Carmin,

no plugin for that. 

the "Duplicate form" is useful for duplicate "Article" content Type because fields are generic, and you just have to add your custom fields.

Regards.

Lionel

9 years ago
0
Level 2

In a form, I have many field who don't change for each record.

I can't oblige the user to write all field for each record : how can I clone this record ?

Thanks !

Carmin

9 years ago
1
Level 1

Hello Carmin,

sorry I had not understand what was your need.!

If some fields are always same, you can initialize them with a live value. So like that, most of time, those fields will be filled, and the user is also able to change their content.

Regards.

Lionel

9 years ago
0
Level 2

I apologize for my bad english... I try to explain :

1. a user create a new record and fill all fields (more than 70)

2. this user save this record

3. another user can open this record and change only 2 or 3 field (never the same) and need to save like another record.

Two records exist now, not the same.

My need is a button "duplicate record" or "save as new".

thanks for your support !

Best Regards

Carmin

9 years ago
0
Level 1

Hello Carmin,

ok I understand the "Save AS new" functionnality you need !

At this time, it's not include in the core of SEBLOD, but it would be an intereresting feature to have.

I advise you to add a request in the tracker.

For the time, there is probably (not tested) a custom solution with the SEBLOD field Code "BeforeStore".

This event is triggered just before storing the data, so here, you can modify some variables to simulate a new content.

In the variable "$config" you can try to reset properties below :

  • id
  • pk

By cons, If your knowledges in development is short, and you really need this feature quickly, I invite you to see at our support packages

Regards.

Lionel

Get a VIP membership