Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6717167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:49:14+00:00 2026-05-26T08:49:14+00:00

I had a previous question combining two questions on this subject…but I think I

  • 0

I had a previous question combining two questions on this subject…but I think I explained a little bit vague…too much story…so I will ask just one question at a time 🙂

I’m trying to create a node with a rule. Rules needs to create a new “product” node and show it to the user so that they can fill in some detail fields and then save it.

I’m trying to do this with Rules -> Create new entity. As “Entity type” I choose “Node” and as “Content type” I choose my product content type. Then I also need to fill in a title. There is where it goes wrong. I tried to put every type of data or string inside this Value field of Title and Rules accepts it and saves the rule. But every time the rules fails creating the node with the following error message:

Unable to create entity node": Invalid data value given. Be sure it matches the required data type and format.

How can I effectively create a new node of a certain content type and present it to the user for further finishing, all with rules?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:49:15+00:00Added an answer on May 26, 2026 at 8:49 am

    You could just do it with code:

    global $user;
    $node = new stdClass;
    $node->type = 'type';
    $node->title = 'A title';
    $node->uid = $user->uid;
    node_object_prepare($node);
    node_save($node);
    
    drupal_goto("node/$node->nid");
    

    Hope that helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had this code from a previous question, but its not compiling: public interface
This is a followup of a previous question I had. I got the very
I'm trying to implement this algorithm description from a previous question I had here
This is a follow-up on a previous question I had ( Complexity of STL
I had a previous question that touched this topic ( Rails: how to get
I had a look at this previous question however this doesn't seem to work
I currently had a problem similar to this previous question: Why would our Java
This is a follow up to a previous question that I had before about
In my previous question on this portal, I had asked about some insight about
This is a follow-on from a previous question I had: How to decouple my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.