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

Hi, Is there any way to show my custom column only[…]

Send for clarification

Hi, I know this is an old post but i could not fin[…]

add dropdown to search process

Please replay if there is any solution!!!!

Amosbatto, is down.

Hi Amos, I appreciate you setting up a tips and t[…]