• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: RSform Basics

RSform Basics 17 years 2 months ago #1787

First of all, I would like to sing praises for this component. My only complaint would be the lack of a user's manual.

Second, I would like to verify that the way I am trying to implement is the best way.

To add general text in form, I have been using freetext. To do so, I have replaced the default Field Style field with the following:.
<tr><td valign=\"top\" width=\"100%\" colspan=\"3\">{fielddesc}</td></tr>
Am I doing this right?

To making text area larger, I have added the following to the Additional attributes field:
cols=\"60\" rows=\"10\"
Is this the best way to do it? Ideally, I would like the text area to span the page, and not specify a width so that it is better compatible with other browsers. Any ways to do so?

To display a form on the frontend, I just make a static link to the page such as index.php?option=com_forme&fid=7. Is this the best way?

I have not tried to embed a form in content. Would this be a better way to display a form to a frontend user?

I have not figured out how to do so, but I would like to have multiple form inputs on the same line instead of vertically oriented. Would I just get rid of the </tr> on the first one and the <tr> on the second one, or is there a better way?

Lastly, I would like to have a frontend user be able to submit a form, and upon submission, a special user (i.e. editor) will be able to access another form which will autopopulate with the frontend users initial inputted data, and be able to be sent back to the initial frontend user along with a response. Is this possible?

Thanks
The administrator has disabled public write access.

Re:RSform Basics 17 years 2 months ago #1820

  • alex
  • alex's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 443
  • Thank you received: 3
Hi Notion,

i am working on the manual also. I wanted to write it with the new RSform! 2.0 i am working on, since there will be many functionalities coming up..

Yes, it is correct. It depends where you place the text. If you place it in the description textarea, then the syntax is:

<tr><td valign=\"top\" width=\"100%\" colspan=\"3\">{fielddesc}</td></tr>

if you place it in the Default Value text, then the syntax would be:

<tr><td valign=\"top\" width=\"100%\" colspan=\"3\">{field}</td></tr>

If you want to make the textarea 100% try adding rows=10 style=width:100%; to the additional attributes

About the static link.. yes.. and if you want to add it to a menu, just select Link - URL from the menu options, and paste the link there.

About the embedding... i think the best way is to create your form and show it normally, by adding free text fields where you want descriptions.

If you want to put multiple fields on the same line, you have to understand how RSform! parses it's fields. Imagine that RSform! takes each field's Field Style value, and places them in row, one after the other as code.

so if in Field1, you have <tr><td valign=\"top\" width=\"100%\" colspan=\"3\">{field}</td></tr> and in field 2 you have <tr><td valign=\"top\" width=\"100%\" colspan=\"3\">{field}</td></tr>

the result will be

<tr><td valign=\"top\" width=\"100%\" colspan=\"3\">{fieldtitle}{field}</td></tr><tr><td valign=\"top\" width=\"100%\" colspan=\"3\">{fieldtitle}{field}</td></tr>


But if in field1 you place <tr><td valign=\"top\" width=\"100%\" colspan=\"3\">{fieldtitle}{field} and in field2 you put {fieldtitle}{field}</td></tr>, then the result will be

<tr><td valign=\"top\" width=\"100%\" colspan=\"3\">{fieldtitle}{field}{fieldtitle}{field}</td></tr>

and so you have 2 fields on the same row.

Your last request... yes.. it's doable. You have to use the mod_forme_list module that you find in Support > Files. Install it, and then customize it, and in the row layout, type something like this:

<tr><td><a href=\"index.php?option=com_forme&fid=2&email={email}\">{email}</a></td><td>{subject}</tr>

Let me explain what it does:

it creates rows with what users submitted, ordered by date added desc. This way your moderator will have a list in the front-end showing like an inbox.

The next step would be to edit form number two, create the email field, then in Scripts called on form display: type this code:
foreach($fields as $i=&gt;$field){
if($field-&gt;name=='email'){
if(isset($_GET['email'])) $fields[$i]-&gt;default_value = $_GET['email'];
}
}
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!