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

Question

Question

How to submit with variable selected by user?

asked on August 5, 2019

Hi all.

 

In my process, I'm using 2 forms (A and B).

I'm using a collection in my form A.

In this collection, I have id_task and a link (using tag <a>)

I wish to load my form B with the variable selected by the user

e.g : form_b?id=1 (if the user clicked the link 1)

 

Using Javascript, I already set the link.

$('.cf-collection > div').each(function()
  {  
$(this).find('.myLink').prop('href','http://server/Forms/form/new/148?id='+$(this).find('#q2 input').val());
  }    				

Now I don't only want a simple link. I would to submit the form.

 

How can I do?

 

Thanks in advance.

Regards

 

 

0 0

Replies

replied on September 30, 2019

How about this?  Add a hidden field on form B.  Make your link that loads for B populate the hidden field with some text (example: 'loaded') as part of the parameters.  Then add Javascript on form B that checks the contents of the hidden field when the form loads, and if the 'loaded' text is there, trigger submit on the form.

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

Sign in to reply to this post.