6 Posts
simdobb14
6 years ago
3
Topic

Hello everyone

Please, I need your help

I have two forms that belong to the same application folder

Form A allows you to create the items and has text fields A1, A2 and A3 they were created with the open padlock

Form B has text fields B1 and B2 and allows sending an email to the person who created the item from form A,

I need to dynamically fill the field B1 with the contents of the A1 field belonging to the one who created the item

Can someone help me? Please.

A procedure to be followed to call the content of an A1 field belonging to a form A in another field B1 and belonging to another form B and corresponding to the data of the person who filled out the form A.

Cordially

Get a Book for SEBLOD
1283 Posts
Bucklash
6 years ago
0
Level 1

Hi

There are many ways you can do this,  and depends how the user gets to the form B. 

My guess would be sql query for ‘live / 2’ to get required value based on some value (probably from $uri)

How does form B know which form A to use?

6 Posts
simdobb14
6 years ago
1
Level 1

Thank you M Bucklash for your answer
On the item created from form A, there is just a link that opens form B
Please, I am still young with seblod that I really appreciate, I do not know if it is the right step
I feel that both forms are completely independent.

Thanks

1283 Posts
Bucklash
6 years ago
0
Level 2

Hi

You need to get funky with passing values to the uri / url ....

As an example....

  • I have a content view for a content type called INVOICE.
  • I have a button called "ADD RECEIPT" constructed from a free text field (so that I can create the link exactly how I wanted it)
  • Default Value for this free text field is " Add Receipt
  • Select view "2" AKA Link.
  • For the link I chose it to go to a form called "RECEIPT"
  • and selected the menu item to go to
  • You have to play around with the "Content Type" and "Menu Item" options to see the outcome and whether you like it or want it that way
  • I pass values to the $uri using "Custom Variables" section by sending values from my current form:
inv_1_id=$cck->getValue('art_id');
&inv_1_balance=$cck->getValue('invoice_balance');
&payer_id=$cck->getValue('invoice_payer_id');
&student_id=$cck->getValue('invoice_student_id');<br>

  • I then want to retrieve these values in my Receipt Form using Live Value
  • See the images below....

INVOICE CONTENT VIEW

link to menu item and content type

pass value to uri

RECEIPT SITE FORM VIEW

field to assign value from uri

live value from url variable

variable from url

Get a VIP membership