Admiral
Admiral
794 views

Any tips to create new forms with IDM 4.8 ?

Hello,

I'm starting to play with the new form builder in IDM 4.8.

I'm not a developer and very far from a JSON and Javascript expert and I'm stuck trying to do simple things that I used to do with legacy forms:

1) Update fields from other fields with "on change" event, for exemple update the full name when first name or last name change: This requires to add java script or JSON logic in the "calculated value".

I tried this in the full Name field, java script calculated value : value = data.firstName + " " + data.lastName;

But did not work.

2) Add a cancel button : There is no "cancel" action when adding a new button.

The doc is missing detailed information and example.

Does anyone has some examples ?

Thanks a lot.

Sylvain

Labels (1)
6 Replies
Admiral
Admiral

I could copy and edit the default forms and get the "cancel" button.

The cancel button custom logic is : util.closeCurrentFormWindow(0);

 

0 Likes
Commander
Commander

Yes, a documentation would be nice!

A tutorial like this would make sense  https://help.form.io/tutorials/walkthroughs/submission/

I tried this standard form.io function and got the error form is undefined. 

form.on('change', function(event) {
if (event.changed) {

console.log (event.changed.component.key )
}
});

 

Cadet 1st Class
Cadet 1st Class

Can i have some help with this issue? Update fields from other fields with "on change" event, 

Admiral
Admiral

Just heard the PM (Tom Burt) say in a public presentation that the new form builder should be just drag-n-drop.

Wonder why people has problems with it 😉 

Cadet 1st Class
Cadet 1st Class

Hi,

the drag-and-drop functionality is working perfect. my issue was the same like the initaitor of this thread. I cannot find any documenattion about how to react on on change event of a component in the UI. Lets say i have a dynamic entity and i want to get the value of the manager of the selected user onChange and display it in a textbox.  Thats my issue. is there any documentation about this?

Regards

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.