8

Instead of having FormFunction directly convert CSV input into a table of values, upload the CSV file to a CloudObject and do the CSV import in the cloud: CloudDeploy[ FormFunction[{"x" -> Interpreter[Restricted["UploadedFile", "CSV"]]}, Dimensions[Import[#x, "CSV"]] & ], FileNameJoin[{$CloudRootDirectory, "CSVRestrictedUploadedFile"}], ...


8

You can inspect elements of interest and add css with EmbeddedHTML: CloudDeploy[ FormFunction[{ EmbeddedHTML["<style> .btn.btn-primary.form-submit{background: #000080;}</style>"], "first" -> "String", "second" -> "Number" }, f ], Permissions -> "Public" ]


4

You can import plain text and then ImportString: form = FormFunction[ "yourfile" -> "Text" , GeoDistance[ImportString[#yourfile, {"KML", "Data"}][[1, 2, 2, 1, 1]]] & ]; CloudDeploy[form, Permissions -> "Public"]


3

I've solved my problem! This is the setup that worked for me: CloudDeploy @ FormFunction[ (* multipage forms on: https://reference.wolfram.com/language/workflow/BuildAMultipageForm.html *) { (* open input forms section *) { (* this is form number 1 *) {"n", "Number of destinations?"} -> "Integer", {"origin", "City of Origin?"} -> "...


2

Form functions get an association from the input dialog, so try Encde[input_] := TableForm[ Flatten[ToUpperCase[ IntegerString[{Times[ToExpression[ToCharacterCode[input["v1"]]], input["p1"]]}, 16]]], TableDirections -> Row] FormFunction[{"v1" -> "String", "p1" -> "Integer"}, Encde]


2

Default value syntax works here too so you can use it: CloudDeploy[ AskFunction[Ask["key" -> "String" -> "default"]] ] If you want to check whether one skipped that entry you can use unique or empty string there and match after submission.


1

If you want to import a specific element of a pdf you can use "Text" type and proceed with ImportString and elements spec: FormFunction[ "file" -> "Text" , ImportString[#file, {"PDF", "Plaintext"}] & ] It does not mean you will always get what you expect. It depends what the pdf really contains. Text inside can be e.g. rasterized. Closely ...


1

CloudDeploy @ FormFunction[ {"image" -> "Image"} , #img & , AppearanceRules -> <| "Title" -> EmbeddedHTML[ StringTemplate[ "<img src=`url` style=`style`>" , InsertionFunction -> ToString@*InputForm ] @ <| "url" -> "https://www.wolframcloud.com/objects/7ee639a7-12c8-44eb-b86b-cf3f78bad8cb" , "...


1

Afaict Dataset does not have associated any fancy export options. It is either an InputForm (1D input or what it evaluates too) or a StandardForm (grid interface). Mathematica Notebooks by default generate StandardForm output so that it why it works there. PNG, or any other raster/vector image formats are generated from the StandardForm so this is why you ...


1

Sure thing, I wanted to generalize it some so here we go... Create some input controls. inputs = <| Table[FromCharacterCode[96 + i, "UTF8"] -> Range[5], {i, 15}]|>; Now CloudDeploy the FormObject directly: cd[FO] = CloudDeploy[ FormObject[ inputs, ImageFormattingWidth -> Infinity, AppearanceRules -> <|"ItemLayout" -> "Vertical"|&...


1

I think you are most likely looking for the Input format. In the Details and Options section of FormFunction it specifies that you can have this form FormFunction[formspec,func][<|"namek"->inputk,…|>] inserts the inputs given into the form specified by FormFunction before evaluating the effect of the FormFunction. FormFunction[{ &...


1

The Wolfram Development Platform Producer plan features database connectivity, which would allow access to a SQLite database in the Wolfram Cloud. For example, this query should return an empty list (Free, Explorer, or Developer plans return unexecuted code): CloudEvaluate[ Needs["DatabaseLink`"]; SQLTables[ OpenSQLConnection[ JDBC["...


Only top voted, non community-wiki answers of a minimum length are eligible