Jump to content

Newest form data in fields.


Recommended Posts

Hi,

I am creating a plugin using forms api and on submit would like the newest form data to be displayed and kept in the fields like a value.

Is there a way to do this with forms api or another solution.

Thanks

 

$field = $this->modules->get('InputfieldMarkup');
$field->description = 'What service are you providing or promoting? Describe your service in a few sentences.';
$fieldset->add($field);
 
$field = $this->modules->get('InputfieldTextarea');
$field->columnWidth = 100;
$fieldset->add($field);
 
//Target Market;
$field = $this->modules->get('InputfieldMarkup');
$field->description = 'Describe your primary target market and additional target markets.';
$fieldset->add($field);
 
$field = $this->modules->get('InputfieldText');
$field->name = 'Target Market 1:';
$field->columnWidth = 33;
$fieldset->add($field);
 
$field = $this->modules->get('InputfieldText');
$field->name = 'Target Market 2:';
$field->columnWidth = 33;
$fieldset->add($field);
 
$field = $this->modules->get('InputfieldText');
$field->name = 'Target Market 3:';
$field->columnWidth = 34;
$fieldset->add($field);
Link to comment
Share on other sites

I believe I've just answered this question in your other thread, but please let us know if I'm wrong and this is actually unrelated.

Also: I'm moving this thread to the "Module/Plugin Development" area of the forum ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...