Fill RSForm Fields With Fields Value From FlexiContent

More
14 years 5 days ago #22503 by startpoint
What I want to do can be seen at the following site officemall.bg . This is a category view. Each item has a link "Поръчай". After clicking, in the form that opens should be filled information from certain fields from the item, which is this link.
You can share if there is some easier way.
I hope I'm able to explain properly.

I also look forward to completing the final version of FLEXIcontent for Joomla 2.5. Do not want to disturb you and deal with additional questions. I will wait to finish and then if you can help would be great.
By the way when you expect to finish?
Best regards

Notebooks, computers and software in Varna - startpointbg.com

Please Log in or Create an account to join the conversation.

More
14 years 4 days ago #22511 by ggppdk
I have done a very similar thing before via a link that executes javascript to fill in some fields of a single CKform. This was for item view, but it will be similar for RSform and category view.

I can help you some time after Thursday next week (if you can wait), this week i have been ill (again for days :( and i had little energy to do anything, plus i am making changes to my house :( )


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
14 years 4 days ago #22514 by startpoint
I was make for item view to fill custom form in RSform too. But for Category view this not working.
This is my work for item view:
valinorandrikstrade.com/2010-11-02-15-22...nspron-m5010-g.html#
on button with name "Поръчка".
Other situation is when pressed green button with name "КУПИ НА ЛИЗИНГ".

This is the code, which i use to get title:
Code:
//<code> $content_id = $RSadapter->getParam($_GET,'id',0); if($content_id){ $q = mysql_query("SELECT title FROM ".$RSadapter->config['dbprefix']."content WHERE id = '$content_id' "); $title = mysql_result($q,0); }else{ $title = 'No content found'; } return $title; //</code> if($content_id){ $q = mysql_query("SELECT title FROM ".$RSadapter->config['dbprefix']."content WHERE id = '$content_id' "); $title = mysql_result($q,0); }else{ $title = 'No content found'; } return $title; //</code>

This is the code, which i use to get value from field with ID=56:
Code:
//<code> $content_id = $RSadapter->getParam($_GET,'id',0); if($content_id){ $q = mysql_query("SELECT value FROM ".$RSadapter->config['dbprefix']."flexicontent_fields_item_relations WHERE item_id = '$content_id' AND field_id = '56' "); if(mysql_num_rows($q)>0){ $price = mysql_result($q,0); } } return $price; //</code>

I hope this help someone, who want to build custom forms with RSForm.

When you have some little free time, please help me to do that to working properly in category view.

Best regards

Notebooks, computers and software in Varna - startpointbg.com

Please Log in or Create an account to join the conversation.

More
14 years 4 days ago #22516 by ggppdk
-- You will need to do it with javascript at the browser, you cannot do it with PHP only.

-- In item view you could do it with PHP only (i gave you code), because you don't have to click to select an item.

-- In category view the data will be prepared via PHP and added via javascript to the form, as i said because i am ill 4 days now (second time with last 25 days) i am behind with everything, and i cannot help you now, regardless with or without fee.

You can contact me via PM after Wednesday next week

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
14 years 4 days ago #22517 by startpoint
Thank you for this info.
I will try, and if I can not do it, I will contact you next week.
Best Regards and a speedy recovery

Notebooks, computers and software in Varna - startpointbg.com

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save