You are viewing limited content. For full access, please sign in.

Question

Question

Saving Process in Repository

asked on October 14, 2015

Hello ,

Here is what I have done :

1. we have a from that contains 5 dropdown lists and five Signature sections associated  with these dropdowns.

2. I want to hide each signature section when its associated dropdown is empty.

3. I could accomplish this task using JQURY in front end. When a drop down is empty associated signature section will be hidden

Here is what I want to do :

I want to eliminate the hidden signature section from repository as well. I tried this way : on my form submit click event, I found empty dropdowns and their associated signature sections. Using  $(element).Remove() I removed associated signature section from DOM (Document Object Model). But removed sections are still saved in repository.

 

Please let me know if there is any way to complete this task.

Best Regards,   
 

0 0

Replies

replied on October 15, 2015

Hi Hamed,

I think the best way to do this would be to use forms in-built "Field Rules" section. From here you can hide/show elements of your form depending on what input there is in other sections. These changes should then be saved to the repository.

I've noticed that most changes made to a form using CSS/Javascript do not get saved to the repository, don't know why but using the above method should get you around this problem!

Cheers, Dan.

0 0
replied on October 16, 2015

Hi there,

In your Javascript you use a field change or button click to trigger the show/hide, but when save to repository, it save the "submission", so whatever display in the View Submission will be saved to repository. View submission is a static view, it only renders the variable submitted, it won't react to field change, button click event.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.