首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Zoho Creator中,无法将决策从Zoho Workflow (deluge script)传递到Zoho表单

在Zoho Creator中,无法将决策从Zoho Workflow (deluge script)传递到Zoho表单
EN

Stack Overflow用户
提问于 2019-09-07 15:43:39
回答 1查看 511关注 0票数 1

我有一个计算器的输出,我需要显示在提交按钮。输出来自使用deluge脚本在Zoho工作流模块中运行的决策树。

1)我尝试将输出作为字符串存储在工作流中,然后将其传递回表单域

2)尝试为输出显示创建zoho页面,但无法链接工作流的输出和zoho页面

代码语言:javascript
复制
if(input.Price > input.Income)
{

    if(input.EMI_Exp < 0.6)
    {
    info "Take the Personal Loan as you can easily manage the EMI. 
    If you choose a credit card then you  will mess your cashflow";
    }
    else
    {
    info "No Personal Loan, No Using Credit Card. You are stretching 
    yourself by purchasing this";
    }
}
else

需要将信息信息传递到Zoho表单中的决策框(文本)。

EN

回答 1

Stack Overflow用户

发布于 2019-09-25 19:39:16

页面:

  1. 在creator上创建一个页面并将其命名为Message (你可以随意命名)
  2. 通过名称recordID(变量的数据类型是字符串,可以有任何名称)向页面添加参数。
  3. 在页面上从表单中获取记录信息,并使用recordID (转换为long,因为它是字符串,而ID是bigint )。例如,response = FormName[ID == recordID.toLong()]
  4. if(response.EMI_Exp < 0.6) { %>接受个人贷款,因为您可以轻松管理EMI。如果你选择信用卡,那么你的现金流将会混乱<% }否则{ %>没有个人贷款,没有使用信用卡。

无状态表单:

  1. 创建无状态表单(将其命名为Message或任何您想要的名称)
  2. 添加两个字段一个单行文本字段,将其命名为recordID和note field,并将其保留为空,不带任何值,并将其命名为Message
  3. On load hide recordID field and using recordID fetch record details i.e
  4. response = FormName[ID == recordID.toLong()];

代码语言:javascript
复制
if(response.Price > response.Income) { 
if(response.EMI_Exp < 0.6)
        {
        input.Message = "Take the Personal Loan as you can easily manage the EMI. 
        If you choose a credit card then you  will mess your cashflow";
        }
        else
        {
        input.Message = "No Personal Loan, No Using Credit Card. You are stretching 
        yourself by purchasing this";
        } }
      else{    input.Message= "Thank you !!!" }

在提交计算器表单时使用以下脚本: openUrl("#Form:formLinkName?zc_LoadIn=dialog&recordID="+input.ID,“

  1. ”)`,使用该脚本可以打开对话框

希望这能对你有所帮助。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57831723

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档