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

Moderators: ArturoRobles, ArturoRobles

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
CRUD and Process

Liliana i want to hear your answer if i say "[…]

Enabling SQL Server in Windows

I’m excited to uncover this page. I need to […]

Hi, Please use query like this: SELECT Forneced.[…]

Casos estão carregando em branco

Boa tarde! Prezados, estou com problemas em algun[…]