Refreshing Input Form On Button Click Without Closing Form | Community
Skip to main content
November 1, 2021
Question

Refreshing Input Form On Button Click Without Closing Form

  • November 1, 2021
  • 2 replies
  • 1882 views

Hello, I am running a function that will count records from a few tables and insert them into one main table. My form will then display the counts on the form. Currently the form will display all zeros even after my function has ran. The input forms do not update until I close my form and hit refresh then re-open the form.

 

Question is: Is there are way to refresh my entire form using a button click without closing the form itself?

Something like a form.refresh() function

 

I am on Adobe Campaign Classic Version 7 - Build 9187

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Jyoti_Yadav
Level 8
November 2, 2021

Hi @jaredbrown ,

 

Yes, it is possible. 

1) Create button. And call a function onButtonClick().

2) This function should make a call to your function which is doing the record count calculation.

 

Thanks,

Jyoti

November 3, 2021

All im trying to do is call a refresh="true" on an <enter> or <soupCall> Tag, but neither seem to work.

November 3, 2021

Still having this issue, I am trying to add a refresh to my <enter but it keep getting this error:

 

Attribute 'refresh' unknown (see definition of element '/enrichContext' in shema 'Forms')

XML-110013 Error line 380, column 73 (document with schema 'form', name 'customerRequest' and description 'Customer Request')

 

The code works if I remove the refresh="true" but it does not update my form unless I close out hit the green refresh on the top of the screen and reopen the form.

 

 

<container codepage="1252" colcount="1">
<input colspan="1" label="Count Records" nolabel="false" type="Button">

<enter onSuccess="Records Counted Successfully" refresh="true">

<soapCall name="countOutTables" service="ctr:customerRequest">
<param exprIn="@id" type="int"/>
</soapCall>
</enter>
</input>
</container>

Level 2
October 5, 2023

hello @jaredbrown ,

 

I'm facing the same issue, have you found any solution for this problem ?

if so could you please share it with me,

 

Thank you in advance.