What's new

Welcome to xCrud Community - Data Management and extended PHP CRUD

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

pre-populate on create

tribor

New member
Joined
Apr 14, 2024
Messages
1
Reaction score
0
Points
1
Location
home
is there a way to dynamically add values to xcrud-create?
the only option I have found is to use 'pass_default'. but I don't want to set (static) defaults but to open xcrud in create-view and have certain fields pre-populated by given values. it's not just one field I want to have filled-in but several!

I also tried to use 'set_var( var_name, value )' but this does not work for me.

any ideas?
 
Last edited:

mungle

New member
Joined
Dec 9, 2021
Messages
11
Reaction score
2
Points
3
Location
Dubai
Hi,
Did you try before_create function? Have a look to the documentation.
 
Top Bottom