Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By HeshanKaru1994
Imagine you have 5 different subforms and you need to clear them depending on the scenario

If process A is selected only 1 subform need to be cleared.
If process B is selected all the subforms need to be cleared.
User avatar
By avanzyl
Hi HeshanKaru1994,

Have you tried using the following javascript in the dynaform?

For example, to reset all fields in a Dynaform to their original values:
User avatar
By amosbatto
Similar to what avanzyl recommends, you can use this code to reset the subform to its orginal values with this JavaScript:
Where 1234567890abcdef1234567890abcdef is the ID of the subform.

Another way is to use this code:
$("#1234567890abcdef1234567890abcdef").find("input, textarea, select").val("");
User avatar
By avanzyl
Just make sure that you do in fact have the function written correctly. It looks like you dont have "()" at the end of reset like this:

User avatar
By avanzyl
You get the same error using this?

$("#1234567890abcdef1234567890abcdef").find("input, textarea, select").val("");

Where 1234567890abcdef1234567890abcdef is the subform ID
Call Help Center

pinterest help , contact pinterest , pinterest ph[…]

thank you for your Interest but I found problem […]

Hi, Some times the executeQuery function is not […]

Link Logo

Nice topic. Its very useful about link logo desi[…]