【问题标题】:In Zoho Creator unable to pass the decision from Zoho Workflow (deluge script) to Zoho Form在 Zoho Creator 中,无法将决策从 Zoho Workflow(deluge 脚本)传递到 Zoho Form
【发布时间】:2020-01-09 21:43:15
【问题描述】:

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

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

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

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 表单中的决策框(文本)。

【问题讨论】:

    标签: zoho


    【解决方案1】:

    在提交表单时,如果您愿意向用户显示一条消息,您可以使用两个事物页面或无状态表单。

    页面:

    1. 在 creator 上创建一个页面并将其命名为 Message(您可以将其命名为 你愿意)
    2. 通过名称recordID(数据类型为 变量是字符串&可以有任何名字)。
    3. 在页面上从表单中获取记录信息并使用 recordID( 转换为 只要它是字符串,而 ID 是 bigint )。 IE response = FormName[ID == recordID.toLong()]
    4. if(response.EMI_Exp < 0.6)
          {
          %><p>
              Take the Personal Loan as you can easily manage the EMI. <br>
              If you choose a credit card then you  will mess your cashflow
          <p><%
          }
          else
          {
            %>
             <p>
               No Personal Loan, No Using Credit Card. You are stretching 
          yourself by purchasing this
             </p>
            <%
          } 
          }else{
            %>
             <p>
               Thank you!!!
             </p>
            <%
          }```
      
    5. 点击提交按钮时使用打开网址: openUrl("#page:pageLinkName?zc_LoadIn=dialog&amp;recordID="+input.ID,"same window"),使用脚本可以打开对话框

    无状态形式:

    1. 创建无状态表单(将其命名为 Message 或任何您想要的名称)
    2. 在单行文本字段中添加两个字段并将其命名为 recordID 和 注意字段并将其保留为空,没有任何值并将其命名为 留言
    3. 加载时隐藏记录 ID 字段并使用记录 ID 获取记录详细信息 即
    4. response = FormName[ID == recordID.toLong()];
    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 !!!" }
    
    1. 使用以下脚本提交计算器表格:
      openUrl("#Form:formLinkName?zc_LoadIn=dialog&recordID="+input.ID,
          "same window")```
      , using the script you can open a dialog box
      

    希望这对你有帮助。

    【讨论】:

      猜你喜欢
      • 2017-11-15
      • 2015-03-11
      • 1970-01-01
      • 2021-04-13
      • 2021-05-14
      • 2021-10-02
      • 1970-01-01
      • 2022-06-19
      • 2020-11-27
      相关资源
      最近更新 更多