dongyan1548 2018-08-21 13:15
浏览 6

在drupal中保存半填充形式

I am building a long form in Drupal 7. The form contain 3 step to complete. There is certain validation and it is required.

What I want: I want to save half filled form in database or other way. All data should fetch out when he logged in again with same or other system. I tried save_draft module but it not working perfectly. There is issue of 'not working of next button'.

Hi, I am strongly stuck in this point that after enabling 'save draft' module in Drupal 7,all code are disturb. After my some effort I find that there is automatically modify in Id. Below are the code with modified and not modified.

non-modified Id

id="edit-field-home-address-type-und-0-premise"

modified Id

id="edit-field-home-address-type-und-0-premise--2"

So please suggest me how to remove all these '--2' extra values from Id from Form in drupal 7.

Please help me out. Thanks in advance.

  • 写回答

1条回答 默认 最新

  • dongzhao2725 2018-09-06 04:30
    关注

    You should give autosave a try which saves node form state automatically (without user requiring to press a button)

    Not sure if it works with multi step node forms

    评论

报告相同问题?

悬赏问题

  • ¥30 自适应 LMS 算法实现 FIR 最佳维纳滤波器matlab方案
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥15 Python3.5 相关代码写作
  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像