Fill out a field with Text in other Form by Service

Hi everyone, I am using a service to update FormA form FormB.

Service Configuration: FormA / Form 1 / Submit/ Update (S_myUpdateButton) / Update

To update only a specific data record, I map a specific data record ID with FormA. So far so good!

Unfortunately, there is no way to link a specific field from FormB to FormA so that I can also synchronize a field in FormA. You can only trigger the S_myUpdateButton via the service.

Since there is no output assignment, I wanted to use the variable pActionId from FormA: The idea was that when this submit S_myUpdateButton by the Service from FormB, my javascript-code in the validateButtonPressed-Event from FormA is executed.

FormA validateButtonPressed:
if(pActionId === 'S_myUpdateButton') {
BO.F_field.setValue(“yes”);
}

But unfortunately, it seems that the validateButtonPressed event of FormA is not triggered when the button is “pressed” by a service of FormB.

Does anyone have any idea how I can populate the field in FormA when FormA is updated by a service from FormB?

Thank you very much
Vici

Hi Vici,

Please try this:

First off, you need to specify in the Form B what is Record ID you need to update in Form A to sync:

Then, update the Inputs tab in the service like this:

To test, for example, I have test value in single record of Form A:

Then, if I hit submit button in Form B, the output is:

Hope this helps.

Thanks,

Jayve

Crazy, I tried this way yesterday and it didn't work. Okay, what the heck, many thanks for your help, it's definitely working now :-)

You're most welcome Vici. Happy to help.