Hi Folks,
I am currently building more than 70 forms for my company, it is a very specific work about Pumps maintenance on the Factory's shop floor, and I need to "transform" all existing papers form in "Digital Forms".
I am using Powerapps forms and in some cases, I need to insert static images beside form fields, but I think the system does not allow us to make this type of "grid" customization in forms. Could anyone help me find a solution?
Image 1: Current paper form layout
Image 2: The layout I am trying to reach using custom cards.
There is an easy way to do this when I don't have to insert an image, just need to create the same amount of cards on the left (image area), but in this case, I can't fit the image in that space.
Thanks in advance for all your suggestions.
Ricardo Carneiro
Solved! Go to Solution.
Hi @Anonymous
Seems like you have a lot of work cut out.
Here is an idea i played with some time ago, maybe it can help you too.
Create Excel Tables that will be used to build your forms:
Import the excel table as static data
Add a gallery control which you can also drive from the static data to get the total columns and rows and build a collection based on them. in this case the columns are 6 as well as the rows.
ClearCollect(_MainFormStruct,Sequence(txtCols * txtRows))
Set the WrapCount of the gallery to your column count
Add a label to the gallery and set its border width to 1
set the witdh and height of the label as you need it
fill the first two rows and first column with gray
If(ThisItem.Value <= txtCols.Text * 2 || Mod(ThisItem.Value,txtCols.Text) = 1, LightGray, White)
lets hide those number, set the font to transparent
Add anohter label and center the text, set the text to
LookUp(FormMeta, Cell = ThisItem.Value, Value)
There you almost there
how you store an call your image i will leave to you.
lastly add a text with its visible = If(ThisItem.Value <= txtCols.Text * 2 || Mod(ThisItem.Value,txtCols.Text) = 1, false, true)
and here is your form in run mode
It takes some time to setup but once doen all the forms are easy to build.
Hope you can use this or help you on path
Hi @Anonymous
Seems like you have a lot of work cut out.
Here is an idea i played with some time ago, maybe it can help you too.
Create Excel Tables that will be used to build your forms:
Import the excel table as static data
Add a gallery control which you can also drive from the static data to get the total columns and rows and build a collection based on them. in this case the columns are 6 as well as the rows.
ClearCollect(_MainFormStruct,Sequence(txtCols * txtRows))
Set the WrapCount of the gallery to your column count
Add a label to the gallery and set its border width to 1
set the witdh and height of the label as you need it
fill the first two rows and first column with gray
If(ThisItem.Value <= txtCols.Text * 2 || Mod(ThisItem.Value,txtCols.Text) = 1, LightGray, White)
lets hide those number, set the font to transparent
Add anohter label and center the text, set the text to
LookUp(FormMeta, Cell = ThisItem.Value, Value)
There you almost there
how you store an call your image i will leave to you.
lastly add a text with its visible = If(ThisItem.Value <= txtCols.Text * 2 || Mod(ThisItem.Value,txtCols.Text) = 1, false, true)
and here is your form in run mode
It takes some time to setup but once doen all the forms are easy to build.
Hope you can use this or help you on path
Many thanks, Rubin_Boer.
It is a very interesting suggestion/Solution, I really appreciated that.
The Forms I am building have more fields than only those I uploaded, but I think it will be a very interesting experiment to be done.
I going to create a new form now using your suggestion, thanks.
Ricardo.
The Forms I am building have more than only those fields I uploaded, but I think it will be a very interesting experiment to be done.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
195 | |
67 | |
46 | |
41 | |
28 |
User | Count |
---|---|
255 | |
119 | |
86 | |
84 | |
81 |