⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

pass value from POST to another field?



chocovo

chocovo
  • profile picture
  • Member

Posted 26 November 2014 - 08:37 AM

Hello,

 

When somebody edit a post, would it be possible to pass the value from a field to another field?

 

Example:

 

When insert:

field askQuestion= '<p>aaa<br>bbb</p>'

 

When edit (first time):

field Answer='<p>ccc</p>'

field Answers='<p>ccc</p>';

 

When edit (a second time):

field Answer='<p>ddd</p>'

field Answers='<p>ccc</p><p>ccc</p>';

 

Thank you for your time.

Best regards

 

 


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 26 November 2014 - 16:02 PM

Yes my friend - u can do it.. using pure javascript / jquery..

just bind the fields in state of edit..

it is done by writing the script in a js file and attaching the js to the same using set_js

and getting the edit state - is done by using getState()

 

Happy Gcing :)


chocovo

chocovo
  • profile picture
  • Member

Posted 26 November 2014 - 23:07 PM

I will need to investigate about it because I'm newbie but thank you.