Fill RSForm Fields With Fields Value From FlexiContent

More
12 years 2 months 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
12 years 2 months 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...

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

More
12 years 2 months 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
Time to create page: 0.278 seconds
Save
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